diff --git a/src/product/product.service.ts b/src/product/product.service.ts index df1642f..c02b6e1 100644 --- a/src/product/product.service.ts +++ b/src/product/product.service.ts @@ -366,11 +366,13 @@ export class ProductService { 'product.currentStatus', 'product.statusHistory', 'history_status', - 'history_status.deleted_at is NULL and history_status.partner_id = :id_partner and history_status.status = ACTIVE', + 'history_status.deleted_at is NULL' + ) + .where(`history_status.partner_id = :id_partner and history_status.status = 'ACTIVE'`, { id_partner: user.partner.id, }, - ) + ) .select(['product.id']) .addSelect([ 'product.name',