@cocreate/mongodb
Advanced tools
Comparing version 1.17.0 to 1.17.1
@@ -0,1 +1,8 @@ | ||
## [1.17.1](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.17.0...v1.17.1) (2024-01-18) | ||
### Bug Fixes | ||
* handle stroage if $storage string ([732a2b9](https://github.com/CoCreate-app/CoCreate-mongodb/commit/732a2b9e0ac6cb10225a202df204f046e6728733)) | ||
# [1.17.0](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.16.1...v1.17.0) (2024-01-17) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/mongodb", | ||
"version": "1.17.0", | ||
"version": "1.17.1", | ||
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -297,2 +297,10 @@ const { MongoClient, ObjectId } = require('mongodb'); | ||
let $array = data[type][i].$array || [] | ||
if (!Array.isArray($storage)) | ||
$storage = [data[type][i].$storage] | ||
if (!Array.isArray($database)) | ||
$database = [data[type][i].$database] | ||
if (!Array.isArray($array)) | ||
$array = [data[type][i].$array] | ||
$storage.push(data.storageName) | ||
@@ -299,0 +307,0 @@ $database.push(database) |
125727
672