From cd6ef2711619e88ee417e51a41ee33d59916e237 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 10 Apr 2025 13:59:19 +0700 Subject: [PATCH] =?UTF-8?q?filter=20=E0=B8=AB=E0=B8=99=E0=B9=88=E0=B8=A7?= =?UTF-8?q?=E0=B8=A2=E0=B8=87=E0=B8=B2=E0=B8=99=20=E0=B8=A3=E0=B8=B2?= =?UTF-8?q?=E0=B8=A2=E0=B8=81=E0=B8=B2=E0=B8=A3=E0=B8=9B=E0=B8=A3=E0=B8=B0?= =?UTF-8?q?=E0=B8=A7=E0=B8=B1=E0=B8=95=E0=B8=B4=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B8=9D=E0=B8=B6=E0=B8=81=E0=B8=AD=E0=B8=9A=E0=B8=A3=E0=B8=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ReportController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index ff19bb7..d9ff0eb 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -441,7 +441,7 @@ export class ReportController extends Controller { .andWhere(body.year != 0 && body.year != null ? "development.year = :year" : "1=1", { year: body.year, }) - .andWhere(body.root != null ? "development.root = :root" : "1=1", { + .andWhere(body.root != null ? "developmentHistory.root = :root" : "1=1", { root: body.root, }) .andWhere("developmentHistory.type = :type", { type: "OFFICER" })