Skip to content

Reject the commit when the database rejects the COMMIT

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:43
Immutable release. Only release title and notes can be modified.

22.5.1 (2026-11-27)

Bug fixes

  • trx.commit() and db.transaction(callback) reject with the database error when the database rejects the COMMIT, for example on a serialization failure in PostgreSQL. Model helpers that open their own transaction, such as Model.createMany(), reject too. Before, the commit resolved, and the commit event and the after('commit') hooks ran for data that was not saved. (#1217, for #1205)
  • A failed COMMIT emits the rollback event, so db.beginGlobalTransaction() and models drop the completed transaction. (#1217)

Full changelog: v22.5.0...v22.5.1