Skip to content

Commit

Permalink
Add left join to select query for remove from cart (#1716)
Browse files Browse the repository at this point in the history
  • Loading branch information
gchauhan-aot authored Dec 16, 2024
1 parent 2f55b2b commit d27027f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vehicles/src/modules/shopping-cart/shopping-cart.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', {
Expand Down

0 comments on commit d27027f

Please sign in to comment.