Permalink
Browse files

Fixed instance "saved" attribute in mongodb adapter

  • Loading branch information...
djrenren committed Aug 14, 2012
1 parent 6653df8 commit 370f6eb7486ad9da3882b138dfaef21ac218a259
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/model/adapters/mongo.js
@@ -156,7 +156,7 @@ var Mongo = function (config) {
}
// if we don't already have the to do item, save a new one
else {
- instance.saved = true;
+ cleanInstance.saved = instance.saved = true;
self.collection.save(cleanInstance, function(err, docs){
return callback(err, instance);
});

0 comments on commit 370f6eb

Please sign in to comment.