diff --git a/src/controllers/SalaryEmployeeController.ts b/src/controllers/SalaryEmployeeController.ts index c8a295a..141507a 100644 --- a/src/controllers/SalaryEmployeeController.ts +++ b/src/controllers/SalaryEmployeeController.ts @@ -216,18 +216,10 @@ export class SalaryEmployeeController extends Controller { @Query("pageSize") pageSize: number = 10, @Query("keyword") keyword?: string, ) { - let whereClause : any = {}; + let whereClause: any = {}; if (keyword != undefined && keyword !== "") { whereClause = { - where: [ - { name: Like(`%${keyword}%`) }, - { group: Like(`%${keyword}%`) }, - { isActive: Like(`%${keyword}%`) }, - { date: Like(`%${keyword}%`) }, - { startDate: Like(`%${keyword}%`) }, - { endDate: Like(`%${keyword}%`) }, - { details: Like(`%${keyword}%`) }, - ] + where: [{ name: Like(`%${keyword}%`) }, { group: Like(`%${keyword}%`) }], }; } const [salary, total] = await this.salaryEmployeeRepository.findAndCount({