Merge branch 'development' of https://gitlab.com/empatnusabangsa/ppob/ppob-backend into devops-staging

This commit is contained in:
Fadli 2022-08-30 00:18:48 +07:00
commit 53df1d9802

View File

@ -368,7 +368,11 @@ export class ProductService {
'history_status',
'history_status.deleted_at is NULL'
)
.where(`history_status.status = 'ACTIVE'`)
.where(`history_status.partner_id = :id_partner and history_status.status = 'ACTIVE'`,
{
id_partner: user.partner.id,
},
)
.select(['product.id'])
.addSelect([
'product.name',