This commit is contained in:
Anatoliy Chakkaev 2012-08-13 10:16:22 +04:00
commit 134799763c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
});
};