From 1623febe48c3ee107e7e75d2bc7cb7107b84ae49 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 13 Dec 2024 17:55:03 +0700 Subject: [PATCH] fix --- src/controllers/ReportController.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/controllers/ReportController.ts b/src/controllers/ReportController.ts index f665548d..26ef1c09 100644 --- a/src/controllers/ReportController.ts +++ b/src/controllers/ReportController.ts @@ -88,7 +88,7 @@ export class ReportController extends Controller { TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) >= :minAge AND TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) <= :maxAge `, { minAge, maxAge }) - .orderBy("posType.posTypeaName","ASC") + .orderBy("posType.posTypeName","ASC") .getMany(); if(!rawdataProfile){ throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ"); @@ -189,6 +189,7 @@ export class ReportController extends Controller { TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) >= :minAge AND TIMESTAMPDIFF(YEAR, current_holder.birthDate, CURDATE()) <= :maxAge `, { minAge, maxAge }) + .orderBy("posType.posTypeName","ASC") .getMany(); if(!rawdataProfile){ throw new HttpError(HttpStatus.NOT_FOUND, "ไม่พบข้อมูลบุคคลนี้ในระบบ");