dont crash if there is nothing to write

v1.18.x
Baris Usakli 6 years ago
parent 12f3f56b01
commit 51792da430

@ -19,6 +19,9 @@ module.exports = function (redisClient, module) {
}
});
if (!Object.keys(data).length) {
return callback();
}
redisClient.hmset(key, data, function (err) {
callback(err);
});

Loading…
Cancel
Save