@oridune/epic-odm
Advanced tools
Comparing version 1.0.32 to 1.0.33
{ | ||
"name": "@oridune/epic-odm", | ||
"version": "1.0.32", | ||
"version": "1.0.33", | ||
"description": "Install 1 ODM and code once with any database driver.", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -407,2 +407,3 @@ "use strict"; | ||
delete Dataset["$inc"]; | ||
const Set = Object.keys(Dataset).length ? { $set: Dataset } : undefined; | ||
// Create New Document | ||
@@ -412,3 +413,3 @@ const Results = await (await this.getConnectionObject()) | ||
.collection(ModelOptions.getResolvedName()) | ||
.updateMany({ _id: { $in: targets.map((_) => _._id) } }, Object.assign({ $set: Dataset }, Incrementor), { session: connection }); | ||
.updateMany({ _id: { $in: targets.map((_) => _._id) } }, Object.assign(Object.assign({}, Set), Incrementor), { session: connection }); | ||
return { updatedCount: Results.modifiedCount }; | ||
@@ -415,0 +416,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
149390
3057