Skip to content

Commit

Permalink
This attr needs to be set also, or isModified is not updated for the …
Browse files Browse the repository at this point in the history
…field
  • Loading branch information
JoshuaGross committed Oct 29, 2012
1 parent 6616ad4 commit c5d974a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/mongoose-subpopulate.js
Expand Up @@ -363,6 +363,7 @@ function wrapModelObject (object) {
wrappedObject.populatedObjects[value._id] = value;
object.set(attr, value.mongooseLink);
} else {
object[attr] = value;
object._doc[attr] = value;
object.set(attr, value);
wrappedObject.set(attr, value);
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "mongoose-subpopulate",
"version": "0.1.7",
"version": "0.1.8",
"main": "./lib/mongoose-subpopulate.js",
"scripts": {},
"repository": {
Expand Down

0 comments on commit c5d974a

Please sign in to comment.