upd: add status column in service

This commit is contained in:
avicenan
2026-02-20 15:50:59 +07:00
parent 9ef6866d73
commit 1bf53b3738
3 changed files with 9 additions and 3 deletions

View File

@ -9,8 +9,9 @@ export class ServiceModel {
let whereAttr: string[] = [];
let whereVal: any = {};
if (filter && Object.keys(filter).length > 0) {
whereAttr = [...whereAttr, ...CommonHelper.handleQueryFilter(filter).whereAttr];
whereVal = { ...whereVal, ...CommonHelper.handleQueryFilter(filter).whereVal };
const filterResult = CommonHelper.handleQueryFilter(filter, "Service");
whereAttr = [...whereAttr, ...filterResult.whereAttr];
whereVal = { ...whereVal, ...filterResult.whereVal };
}
var query = repo.createQueryBuilder("Service");