Skip to content

Commit

Permalink
fix(transactional)!: correct behavior of Propagation.Never
Browse files Browse the repository at this point in the history
  • Loading branch information
Papooch authored Jul 26, 2024
1 parent e93f550 commit 18777f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/transactional/src/lib/transaction-host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export class TransactionHost<TAdapter = never> {
if (this.isTransactionActive()) {
throw new TransactionAlreadyActiveError(fnName);
}
return this.runWithTransaction(options, fn);
return this.withoutTransaction(options, fn);
default:
throw new TransactionPropagationError(
`Unknown propagation mode ${propagation}`,
Expand Down

0 comments on commit 18777f9

Please sign in to comment.