Browse Source

chore(core): Assign shippingLine.shippingMethodId

No indication that lack of this was causing a bug, but
it is a case for "belt and braces"
Michael Bromley 2 năm trước cách đây
mục cha
commit
2089af1cd5
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      packages/core/src/service/services/order.service.ts

+ 1 - 0
packages/core/src/service/services/order.service.ts

@@ -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({