Comparing version 0.1.4 to 0.1.5
@@ -87,3 +87,3 @@ /* | ||
Mongodb.prototype.objectFilter = { blacklist: [ mongodb.ObjectID.prototype ] } ; | ||
Mongodb.prototype.pathSeparator = '.' ; | ||
//Mongodb.prototype.pathSeparator = '.' ; | ||
@@ -363,2 +363,5 @@ | ||
// Should not be updated | ||
delete rawDocument._id ; | ||
if ( typeof id === 'string' ) { id = mongodb.ObjectID( id ) ; } | ||
@@ -376,4 +379,6 @@ this.mongoCollection.update( { _id : id } , rawDocument , callback ) ; | ||
// Should not be updated | ||
delete rawDocument._id ; | ||
if ( typeof id === 'string' ) { id = mongodb.ObjectID( id ) ; } | ||
if ( typeof rawDocument._id === 'string' ) { rawDocument._id = mongodb.ObjectID( rawDocument._id ) ; } | ||
this.mongoCollection.update( { _id : id } , { $set: rawDocument } , callback ) ; | ||
@@ -380,0 +385,0 @@ } ; |
{ | ||
"name": "roots-db", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Even more minimalistic ODM", | ||
@@ -5,0 +5,0 @@ "main": "lib/rootsDb.js", |
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
151526
2444