Skip to content

Commit

Permalink
fix transaction bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bahram1249 committed Jul 2, 2024
1 parent b1bcb73 commit c326f5b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ export class InventoryTrackChangeService {
transaction?: Transaction,
) {
const inventory = await this.inventoryRepository.findOne(
new QueryOptionsBuilder().filter({ id: inventoryId }).build(),
new QueryOptionsBuilder()
.filter({ id: inventoryId })
.transaction(transaction)
.build(),
);

await this.repository.create(
Expand Down

0 comments on commit c326f5b

Please sign in to comment.