mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
fix rename to multi
This commit is contained in:
@@ -120,7 +120,7 @@ module.exports = function(db, module) {
|
|||||||
|
|
||||||
module.rename = function(oldKey, newKey, callback) {
|
module.rename = function(oldKey, newKey, callback) {
|
||||||
callback = callback || helpers.noop;
|
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) {
|
module.expire = function(key, seconds, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user