mirror of
https://github.com/zhigang1992/deployd.git
synced 2026-05-13 04:00:35 +08:00
Fixed PUT responding with old values
This commit is contained in:
@@ -420,7 +420,8 @@ Collection.prototype.save = function (session, item, query, client, fn) {
|
||||
delete item.id;
|
||||
store.update(query, item, function (err) {
|
||||
if(err) return fn(err);
|
||||
fn(null, obj);
|
||||
item.id = obj.id;
|
||||
fn(null, item);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user