@cocreate/mongodb
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -0,1 +1,8 @@ | ||
## [1.0.5](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.0.4...v1.0.5) (2022-12-08) | ||
### Bug Fixes | ||
* update mongodb dependency ([1745139](https://github.com/CoCreate-app/CoCreate-mongodb/commit/1745139844c0d300939fd2cfc9b7f0a2e3c38b14)) | ||
## [1.0.4](https://github.com/CoCreate-app/CoCreate-mongodb/compare/v1.0.3...v1.0.4) (2022-12-07) | ||
@@ -2,0 +9,0 @@ |
{ | ||
"name": "@cocreate/mongodb", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "A simple mongodb component in vanilla javascript. Easily configured using HTML5 data-attributes and/or JavaScript API.", | ||
@@ -67,4 +67,4 @@ "keywords": [ | ||
"@cocreate/utils": "^1.14.2", | ||
"mongodb": "^4.4.0" | ||
"mongodb": "^4.12.1" | ||
} | ||
} |
@@ -327,5 +327,4 @@ const {MongoClient, ObjectId} = require('mongodb'); | ||
} | ||
if (action == 'readDocument') { | ||
if (data[type][i]._id) | ||
_ids.push(ObjectId(data[type][i]._id)) | ||
if (action == 'readDocument' && data[type][i]._id) { | ||
_ids.push(ObjectId(data[type][i]._id)) | ||
} | ||
@@ -332,0 +331,0 @@ if (action =='updateDocument') { |
44706
773
Updatedmongodb@^4.12.1