fix(32.2): WR-05 hand the deactivate revocation the plain transaction
The deactivate lifecycle fired BackendAccessRevokedEvent with actionDB's Unscoped session, so a listener's Delete through ev.Tx was a hard delete only for that reason. It now passes the save's transaction like every other site.
This commit is contained in:
@@ -18,7 +18,8 @@ import (
|
||||
//
|
||||
// It is fired synchronously through app.Events.Fire as a
|
||||
// *BackendAccessRevokedEvent inside the transaction of the save, before the
|
||||
// commit, with that transaction in Tx. A listener's error is returned to the
|
||||
// commit, with that transaction in Tx (the transaction itself at every
|
||||
// site, never an Unscoped session). A listener's error is returned to the
|
||||
// save and rolls it back, so the change and the revocation commit together
|
||||
// or not at all. A listener must write through Tx and must not open its own
|
||||
// transaction. Tx is never nil: a site without its save's transaction
|
||||
|
||||
Reference in New Issue
Block a user