From 475d42cbe42ed65396dbf2742b92e77f03a96622 Mon Sep 17 00:00:00 2001 From: Bright Date: Thu, 19 Sep 2024 14:59:53 +0700 Subject: [PATCH] fix report kk1 --- src/controllers/ProfileController.ts | 1 + src/controllers/ProfileEmployeeController.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 6e335cdb..2c3a64d7 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -512,6 +512,7 @@ export class ProfileController extends Controller { "templateDoc", ], where: { profileId: id }, + order: { order: "ASC" } }); const Salary = salarys.map((item) => ({ diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index cf1e841c..b1fe6f53 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -521,6 +521,7 @@ export class ProfileEmployeeController extends Controller { "templateDoc", ], where: { profileEmployeeId: id }, + order: { order: "ASC" } }); const Salary = salarys.map((item) => ({