v1.18.x
barisusakli 10 years ago
parent 530bdbbd1a
commit d1a1cada19

@ -105,7 +105,7 @@ module.exports = function(redisClient, module) {
module.rename = function(oldKey, newKey, callback) { module.rename = function(oldKey, newKey, callback) {
callback = callback || function() {}; callback = callback || function() {};
redisClient.exist(oldKey, function(err, exists) { redisClient.exists(oldKey, function(err, exists) {
if (err || !exists) { if (err || !exists) {
return callback(err); return callback(err);
} }

Loading…
Cancel
Save