Merge branch 'mongodb-driver' of https://github.com/imothee/jugglingdb
This commit is contained in:
commit
134799763c
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue