Răsfoiți Sursa

fix(core): Fix regression in ProductService.findOne not using relations

Fixes #2443
Michael Bromley 2 ani în urmă
părinte
comite
92cad43fdc
1 a modificat fișierele cu 1 adăugiri și 6 ștergeri
  1. 1 6
      packages/core/src/service/services/product.service.ts

+ 1 - 6
packages/core/src/service/services/product.service.ts

@@ -120,12 +120,7 @@ export class ProductService {
             effectiveRelations.push('facetValues.facet');
         }
         const product = await this.connection.findOneInChannel(ctx, Product, productId, ctx.channelId, {
-            // relations: unique(effectiveRelations),
-            relations: {
-                facetValues: {
-                    facet: true,
-                },
-            },
+            relations: unique(effectiveRelations),
             where: {
                 deletedAt: IsNull(),
             },