Explorar el Código

fix(core): Fix delete order method when called with id (#1751)

Gustavo Alves hace 3 años
padre
commit
fc57b0d861
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      packages/core/src/service/services/order.service.ts

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

@@ -1558,7 +1558,7 @@ export class OrderService {
                 ? orderOrId
                 : await this.connection
                       .getRepository(ctx, Order)
-                      .findOneOrFail(orderOrId, { relations: ['lines'] });
+                      .findOneOrFail(orderOrId, { relations: ['lines', 'shippingLines'] });
         // If there is a Session referencing the Order to be deleted, we must first remove that
         // reference in order to avoid a foreign key error. See https://github.com/vendure-ecommerce/vendure/issues/1454
         const sessions = await this.connection