You've already forked node-redis
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:
3
index.js
3
index.js
@@ -709,6 +709,9 @@ Multi.prototype.exec = function(callback) {
|
|||||||
} else {
|
} else {
|
||||||
args = args.slice(1);
|
args = args.slice(1);
|
||||||
}
|
}
|
||||||
|
if (args.length === 1 && Array.isArray(args[0])) {
|
||||||
|
args = args[0];
|
||||||
|
}
|
||||||
this.client.send_command(command, args, function (err, reply){
|
this.client.send_command(command, args, function (err, reply){
|
||||||
if (err) {
|
if (err) {
|
||||||
var cur = self.queue[index];
|
var cur = self.queue[index];
|
||||||
|
Reference in New Issue
Block a user