Skip to content

Commit

Permalink
fix(lib/transaction.ts) sometimes there are no results
Browse files Browse the repository at this point in the history
  • Loading branch information
rimiti committed May 2, 2019
1 parent 7736c1c commit ed25cdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export function addTransactionSupport (redis) {
}
const promise = exec.call(pipeline)
return asCallback(promise.then(function (result) {
if (typeof result === 'undefined') {
return
}

const execResult = result[result.length - 1]
if (execResult[0]) {
execResult[0].previousErrors = []
Expand Down

0 comments on commit ed25cdb

Please sign in to comment.