Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
killagu committed Oct 14, 2024
1 parent d68023f commit 311289a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugin/dal/lib/TransactionalAOP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ export class TransactionalAOP implements IAdvice<EggProtoImplClass, Transactiona
const { propagation, dataSourceGetter } = ctx.adviceParams!;
const dataSource = dataSourceGetter();
if (propagation === PropagationType.ALWAYS_NEW) {
return await dataSource.beginTransactionScope(next, {
});
return await dataSource.beginTransactionScope(next);
}
return await dataSource.beginTransactionScope(next);
}
Expand Down

0 comments on commit 311289a

Please sign in to comment.