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

This commit is contained in:
Fadli 2022-08-30 00:42:16 +07:00
commit 1160ddff8c

View File

@ -366,7 +366,9 @@ export class ProductService {
'product.currentStatus', 'product.currentStatus',
'product.statusHistory', 'product.statusHistory',
'history_status', '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, id_partner: user.partner.id,
}, },