@cocreate/mongodb
Advanced tools
Comparing version 1.17.4 to 1.17.5
@@ -0,1 +1,8 @@ | ||
## [1.17.5](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.17.4...v1.17.5) (2024-02-14) | ||
### Bug Fixes | ||
* $storage,$database, etc. if does not exist set as empty array ([a7d1ae4](https://github.com/CoCreate-app/CoCreate-mongodb/commit/a7d1ae4a277ad2f136963b4e78b6c7ba3826c3ba)) | ||
## [1.17.4](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.17.3...v1.17.4) (2024-02-13) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/mongodb", | ||
"version": "1.17.4", | ||
"version": "1.17.5", | ||
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -728,2 +728,8 @@ const { MongoClient, ObjectId } = require('mongodb'); | ||
if (matchIndex !== -1) { | ||
if (!data[type][matchIndex].$storage) | ||
data[type][matchIndex].$storage = [] | ||
if (!data[type][matchIndex].$database) | ||
data[type][matchIndex].$database = [] | ||
if (!data[type][matchIndex].$array) | ||
data[type][matchIndex].$array = [] | ||
data[type][matchIndex].$storage.push(array[i].$storage) | ||
@@ -730,0 +736,0 @@ delete array[i].$storage |
127871
688