You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When run async code is used runOnTransactionCommit, top level method with @transaction should also be somehow marked async and handler inside runOnTransactionCommit should be awaited.
Right now if there is code like this: runOnTransactionCommit(async () => { await Something(); throw new Error(); })
Error is ignored by Nest js and it even may crash the app (since there is nothing to "await" callback).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When run async code is used runOnTransactionCommit, top level method with @transaction should also be somehow marked async and handler inside runOnTransactionCommit should be awaited.
Right now if there is code like this:
runOnTransactionCommit(async () => { await Something(); throw new Error(); })
Error is ignored by Nest js and it even may crash the app (since there is nothing to "await" callback).
Beta Was this translation helpful? Give feedback.
All reactions