From 3b0d8c24a79c23a0f36c26392415bc909792f0d4 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 12 Sep 2024 10:36:38 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=E0=B8=8A=E0=B8=B7?= =?UTF-8?q?=E0=B9=88=E0=B8=AD=E0=B8=95=E0=B8=B1=E0=B8=A7=E0=B9=81=E0=B8=9B?= =?UTF-8?q?=E0=B8=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/CommandController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index ec42f64e..26cc79d9 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -74,8 +74,8 @@ export class CommandController extends Controller { : `${status.trim().toLocaleUpperCase()}`, }, ) - .andWhere(year != null && year != undefined && year != 0 ? "command.year = :year" : "1=1", { - year: year == null || year == undefined || year == 0 ? null : `${year}`, + .andWhere(year != null && year != undefined && year != 0 ? "command.commandYear = :commandYear" : "1=1", { + commandYear: year == null || year == undefined || year == 0 ? null : `${year}`, }) .andWhere( commandTypeId != null && commandTypeId != undefined && commandTypeId != ""