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, "ไม่พบข้อมูลบุคคลนี้ในระบบ");