Răsfoiți Sursa

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 ani în urmă
părinte
comite
2089af1cd5
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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];
             let shippingLine: ShippingLine | undefined = order.shippingLines[i];
             if (shippingLine) {
             if (shippingLine) {
                 shippingLine.shippingMethod = shippingMethod;
                 shippingLine.shippingMethod = shippingMethod;
+                shippingLine.shippingMethodId = shippingMethod.id;
             } else {
             } else {
                 shippingLine = await this.connection.getRepository(ctx, ShippingLine).save(
                 shippingLine = await this.connection.getRepository(ctx, ShippingLine).save(
                     new ShippingLine({
                     new ShippingLine({