From 7bd685ea969749a4125b3b3db7109f78b192a08e Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 30 Jun 2025 14:05:41 +0700 Subject: [PATCH] fix: relation order get by id --- src/controllers/01-branch-controller.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/01-branch-controller.ts b/src/controllers/01-branch-controller.ts index 7a19c45..a10352d 100644 --- a/src/controllers/01-branch-controller.ts +++ b/src/controllers/01-branch-controller.ts @@ -370,7 +370,7 @@ export class BranchController extends Controller { bank: true, contact: includeContact, }, - orderBy: { code: "asc" }, + orderBy: [{ statusOrder: "asc" }, { code: "asc" }], }, bank: true, contact: includeContact,