only send back err on redis.deleteAll

v1.18.x
barisusakli 10 years ago
parent 7cf3719c80
commit 1cbf5ddfe9

@ -81,7 +81,9 @@ module.exports = function(redisClient, module) {
for(var i=0; i<keys.length; ++i) { for(var i=0; i<keys.length; ++i) {
multi.del(keys[i]); multi.del(keys[i]);
} }
multi.exec(callback); multi.exec(function(err, res) {
callback(err);
});
}; };
module.get = function(key, callback) { module.get = function(key, callback) {

Loading…
Cancel
Save