Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixed instance "saved" attribute in mongodb adapter #170

merged 1 commit into from Aug 14, 2012
Jump to file or symbol
Failed to load files and symbols.
+1 −1
@@ -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);