Skip to content

Commit

Permalink
fix(core): Apply pricing adjustments against updated order (#2512)
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvdbrug authored Nov 10, 2023
1 parent c4595e7 commit 272be66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/service/services/order.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -923,8 +923,8 @@ export class OrderService {
});
}
const updatedOrder = await this.getOrderOrThrow(ctx, orderId);
await this.applyPriceAdjustments(ctx, order);
return this.connection.getRepository(ctx, Order).save(order);
await this.applyPriceAdjustments(ctx, updatedOrder);
return this.connection.getRepository(ctx, Order).save(updatedOrder);
}

/**
Expand Down

0 comments on commit 272be66

Please sign in to comment.