type-mongodb
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -266,3 +266,5 @@ "use strict"; | ||
}, () => __awaiter(this, void 0, void 0, function* () { | ||
return this.collection.replaceOne(filter, this.toDB(model), opts); | ||
const doc = this.toDB(model); | ||
delete doc._id; | ||
return this.collection.replaceOne(filter, doc, opts); | ||
})); | ||
@@ -269,0 +271,0 @@ }); |
{ | ||
"name": "type-mongodb", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"description": "A simple decorator based MongoDB ODM.", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
202708
2493