diff --git a/lib/adapters/mongodb.js b/lib/adapters/mongodb.js index 1f601bb3..7cab8c67 100644 --- a/lib/adapters/mongodb.js +++ b/lib/adapters/mongodb.js @@ -63,7 +63,7 @@ MongoDB.prototype.create = function (model, data, callback) { }; MongoDB.prototype.save = function (model, data, callback) { - this.collection(model).save({_id: new ObjectID(data.id)}, data, function (err) { + this.collection(model).update({_id: new ObjectID(data.id)}, data, function (err) { callback(err); }); };