diff --git a/src/controllers/KpiCapacityController.ts b/src/controllers/KpiCapacityController.ts index e97db55..eed2317 100644 --- a/src/controllers/KpiCapacityController.ts +++ b/src/controllers/KpiCapacityController.ts @@ -226,11 +226,11 @@ export class kpiCapacityController extends Controller { keyword == undefined ? "1=1" : [ - { "kpiCapacity.name": Like(`%${keyword}%`) }, - { "kpiCapacity.description": Like(`%${keyword}%`) }, + { name: Like(`%${keyword}%`) }, + { description: Like(`%${keyword}%`) }, ], ) - .andWhere(type == undefined ? "1=1" : { "kpiCapacity.type": type }) + .andWhere(type == undefined ? "1=1" : { type: type }) .orderBy("kpiCapacityDetail.level", "ASC") .skip((page - 1) * pageSize) .take(pageSize)