if key isn't found dont error

Conflicts:
	src/database/redis/main.js
v1.18.x
barisusakli 10 years ago committed by Julian Lam
parent a7a4edfd37
commit 39cac43b96

@ -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);
});
};

Loading…
Cancel
Save