Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix redis#222 hmset object expansion by @kartikrao
  • Loading branch information
DTrejo committed Jun 4, 2012
1 parent 65142cf commit 7734fb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -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);
Expand Down

0 comments on commit 7734fb6

Please sign in to comment.