Skip to content

Commit

Permalink
fix: await trx.rollback call
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 12, 2020
1 parent 72b26e7 commit 9c80036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function managedTransaction<T> (
await trx.commit()
return response
} catch (error) {
trx.rollback()
await trx.rollback()
throw error
}
}

0 comments on commit 9c80036

Please sign in to comment.