From 4580a0a1dbddad3ddabaebe134a43889901d8ee7 Mon Sep 17 00:00:00 2001 From: Kevin Mattutat Date: Mon, 25 Nov 2024 17:45:19 +0100 Subject: [PATCH] fix(core): Fixed wrong join statement for variant on ProductVariantPrice (#3230) --- 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(); }