MCPcopy Create free account
hub / github.com/mikro-orm/mikro-orm / afterTransactionCommit

Method afterTransactionCommit

tests/issues/GH1175.test.ts:20–29  ·  view source on GitHub ↗
(args: TransactionEventArgs)

Source from the content-addressed store, hash-verified

18 }
19
20 async afterTransactionCommit(args: TransactionEventArgs) {
21 const { em } = args;
22 const actions = this.pendingActions.get(em);
23 if (actions) {
24 for (const action of actions) {
25 await action();
26 }
27 }
28 this.pendingActions.delete(em);
29 }
30
31 async afterTransactionRollback(args: TransactionEventArgs) {
32 const { em } = args;

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected