mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-05 23:30:36 +01:00
if key isn't found dont error
Conflicts: src/database/redis/main.js
This commit is contained in:
@@ -106,7 +106,7 @@ module.exports = function(redisClient, module) {
|
||||
module.rename = function(oldKey, newKey, callback) {
|
||||
callback = callback || function() {};
|
||||
redisClient.rename(oldKey, newKey, function(err, res) {
|
||||
callback(err);
|
||||
callback(err && err.message !== 'ERR no such key' ? err : null);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user