Prechádzať zdrojové kódy

fix(core): Fixed wrong join statement for variant on ProductVariantPrice (#3230) (#3231)

Drayke 1 rok pred
rodič
commit
7798ddc933

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

@@ -250,7 +250,7 @@ export class ProductVariantService {
         return this.connection
             .getRepository(ctx, ProductVariantPrice)
             .createQueryBuilder('pvp')
-            .where('pvp.productVariant = :productVariantId', { productVariantId })
+            .where('pvp.variant = :productVariantId', { productVariantId })
             .andWhere('pvp.channelId = :channelId', { channelId: ctx.channelId })
             .getMany();
     }