You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
fix #222 hmset object expansion by @kartikrao
This commit is contained in:
2
index.js
2
index.js
@@ -943,7 +943,7 @@ Multi.prototype.exec = function (callback) {
|
||||
if (args.length === 1 && Array.isArray(args[0])) {
|
||||
args = args[0];
|
||||
}
|
||||
if (command === 'hmset' && typeof args[1] === 'object') {
|
||||
if (command.toLowerCase() === 'hmset' && typeof args[1] === 'object') {
|
||||
obj = args.pop();
|
||||
Object.keys(obj).forEach(function (key) {
|
||||
args.push(key);
|
||||
|
Reference in New Issue
Block a user