From 596083b8eee1f8232325c71daeaf9e0a57919e49 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 6 Mar 2025 00:31:38 +0700 Subject: [PATCH] search --- src/controllers/ProfileSalaryController.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/controllers/ProfileSalaryController.ts b/src/controllers/ProfileSalaryController.ts index c5da339f..e352dbe1 100644 --- a/src/controllers/ProfileSalaryController.ts +++ b/src/controllers/ProfileSalaryController.ts @@ -20,7 +20,7 @@ import { ProfileSalaryHistory } from "../entities/ProfileSalaryHistory"; import { RequestWithUser } from "../middlewares/user"; import { Profile } from "../entities/Profile"; import { ProfileEmployee } from "../entities/ProfileEmployee"; -import { In, LessThan, MoreThan } from "typeorm"; +import { In, IsNull, LessThan, MoreThan } from "typeorm"; import permission from "../interfaces/permission"; import { setLogDataDiff } from "../interfaces/utils"; import { TenurePositionOfficer } from "../entities/TenurePositionOfficer"; @@ -254,7 +254,7 @@ export class ProfileSalaryController extends Controller { "14", "15", "16", - null, + IsNull(), ]), }, // order: { order: "ASC" }, @@ -298,7 +298,7 @@ export class ProfileSalaryController extends Controller { "14", "15", "16", - null, + IsNull(), ]), }, // order: { order: "ASC" },