You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
chore: use arrow functions
This commit is contained in:
@@ -101,9 +101,8 @@ Multi.prototype.execTransaction = function execTransaction () {
|
||||
|
||||
const main = this._client.internalSendCommand(new Command('exec', []))
|
||||
this._client.uncork()
|
||||
const self = this
|
||||
return Promise.all(promises).then(() => main.then((replies) => multiCallback(self, replies)).catch((err) => {
|
||||
err.errors = self.errors
|
||||
return Promise.all(promises).then(() => main.then((replies) => multiCallback(this, replies)).catch((err) => {
|
||||
err.errors = this.errors
|
||||
return Promise.reject(err)
|
||||
}))
|
||||
}
|
||||
|
Reference in New Issue
Block a user