Skip to content

Commit

Permalink
chore(core): Assign shippingLine.shippingMethodId
Browse files Browse the repository at this point in the history
No indication that lack of this was causing a bug, but
it is a case for "belt and braces"
  • Loading branch information
michaelbromley committed Nov 24, 2023
1 parent 9546d1b commit 2089af1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/service/services/order.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -876,6 +876,7 @@ export class OrderService {
let shippingLine: ShippingLine | undefined = order.shippingLines[i];
if (shippingLine) {
shippingLine.shippingMethod = shippingMethod;
shippingLine.shippingMethodId = shippingMethod.id;
} else {
shippingLine = await this.connection.getRepository(ctx, ShippingLine).save(
new ShippingLine({
Expand Down

0 comments on commit 2089af1

Please sign in to comment.