1
0
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:
DTrejo
2012-06-04 13:43:10 -07:00
parent 65142cf8c0
commit 7734fb63b4

View File

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