fix rename to multi

This commit is contained in:
barisusakli
2014-11-18 15:50:32 -05:00
parent deac12c540
commit 81e4bcd358

View File

@@ -120,7 +120,7 @@ module.exports = function(db, module) {
module.rename = function(oldKey, newKey, callback) {
callback = callback || helpers.noop;
db.collection('objects').update({_key: oldKey}, {$set:{_key: newKey}}, callback);
db.collection('objects').update({_key: oldKey}, {$set:{_key: newKey}}, {multi: true}, callback);
};
module.expire = function(key, seconds, callback) {