From 8593edfc43e0eda2b4017afd76e8d1d8eb7c9b4c Mon Sep 17 00:00:00 2001 From: Bright Date: Fri, 19 Apr 2024 13:39:25 +0700 Subject: [PATCH] fix --- src/controllers/KpiCapacityController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)