Skip to content

Commit

Permalink
fix(core): Wrap nextOrderStates in transaction
Browse files Browse the repository at this point in the history
Since it can create a new order
  • Loading branch information
michaelbromley committed Apr 4, 2024
1 parent 68a6485 commit ed9539d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ export class ShopOrderResolver {
return new NoActiveOrderError();
}

@Transaction()
@Query()
@Allow(Permission.Owner)
async nextOrderStates(
Expand Down

0 comments on commit ed9539d

Please sign in to comment.