Why transaction does not rollback while inserting row with raw SQL? #17237
Answered
by
ephys
kom24al
asked this question in
Help & Questions
-
await db.sequelize.transaction(async (transaction) => {
]) |
Beta Was this translation helpful? Give feedback.
Answered by
ephys
Apr 2, 2024
Replies: 1 comment 4 replies
-
Transactions roll back when an error is thrown in the transaction callback |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pass the transaction option in the second parameter: