1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Allow array args in multi as before

This commit is contained in:
Tim-Smart
2010-09-25 12:51:11 +12:00
committed by Matt Ranney
parent c6ed6662eb
commit a664565922

View File

@@ -709,6 +709,9 @@ Multi.prototype.exec = function(callback) {
} else {
args = args.slice(1);
}
if (args.length === 1 && Array.isArray(args[0])) {
args = args[0];
}
this.client.send_command(command, args, function (err, reply){
if (err) {
var cur = self.queue[index];