Skip to content

Commit

Permalink
fix #9 with this check
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Dec 7, 2018
1 parent f4aacfd commit 27940bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,10 @@ const query = async function(...args) {
resetClient() // reset the client
reject(err) // reject the promise with the error
} else if (err && /^PROTOCOL_ENQUEUE_AFTER_/.test(err.code)) {

resetClient() // reset the client
return resolve(query(...args)) // attempt the query again
//reject(err) // reject the promise with the error
} else if (err) {
if (this.rollback) {
if (this && this.rollback) {
await query('ROLLBACK')
this.rollback(err)
}
Expand Down

0 comments on commit 27940bd

Please sign in to comment.