You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Fix send_command working with hooked internal functions
This commit is contained in:
@@ -147,7 +147,7 @@ Multi.prototype.exec_transaction = function exec_transaction (callback) {
|
||||
pipeline_transaction_command(self, command, args[1], index, cb);
|
||||
}
|
||||
|
||||
self._client.send_command('exec', [], function (err, replies) {
|
||||
self._client.internal_send_command('exec', [], function (err, replies) {
|
||||
multi_callback(self, err, replies);
|
||||
});
|
||||
self._client.uncork();
|
||||
@@ -207,10 +207,10 @@ Multi.prototype.exec = Multi.prototype.EXEC = Multi.prototype.exec_batch = funct
|
||||
} else {
|
||||
cb = callback_without_own_cb;
|
||||
}
|
||||
if (callback && index === len - 1) {
|
||||
if (typeof callback === 'function' && index === len - 1) {
|
||||
cb = last_callback(cb);
|
||||
}
|
||||
self._client.send_command(command, args[1], cb);
|
||||
self._client.internal_send_command(command, args[1], cb);
|
||||
index++;
|
||||
}
|
||||
self.queue = new Queue();
|
||||
|
Reference in New Issue
Block a user