From 7798ddc933501e1f374219b1d35e88d42086dbbd Mon Sep 17 00:00:00 2001 From: Drayke Date: Fri, 29 Nov 2024 13:42:14 +0100 Subject: [PATCH] fix(core): Fixed wrong join statement for variant on ProductVariantPrice (#3230) (#3231) --- packages/core/src/service/services/product-variant.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/service/services/product-variant.service.ts b/packages/core/src/service/services/product-variant.service.ts index 8a8dc69ee5..017e7ce3ff 100644 --- a/packages/core/src/service/services/product-variant.service.ts +++ b/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(); }