From ef9c7ff23bd45d0b24dfc374b44017133d74ae8d Mon Sep 17 00:00:00 2001 From: gchauhan-aot Date: Mon, 16 Dec 2024 12:37:32 -0700 Subject: [PATCH] adding join to select query --- vehicles/src/modules/shopping-cart/shopping-cart.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vehicles/src/modules/shopping-cart/shopping-cart.service.ts b/vehicles/src/modules/shopping-cart/shopping-cart.service.ts index d7ad5c683..316fab05e 100644 --- a/vehicles/src/modules/shopping-cart/shopping-cart.service.ts +++ b/vehicles/src/modules/shopping-cart/shopping-cart.service.ts @@ -323,7 +323,8 @@ export class ShoppingCartService { } else { const selectResult = await this.applicationRepository .createQueryBuilder('application') - .where('permitId IN (:...applicationIds)', { + .leftJoin('application.company', 'company') + .where('application.permitId IN (:...applicationIds)', { applicationIds, }) .andWhere('company.companyId = :companyId', {