fix: institution not order correctly

This commit is contained in:
Methapon2001 2025-02-18 13:37:57 +07:00
parent a0d3c89395
commit 3af6701ff0

View file

@ -95,6 +95,7 @@ export class InstitutionController extends Controller {
district: true,
subDistrict: true,
},
orderBy: [{ statusOrder: "asc" }, { code: "asc" }],
take: pageSize,
skip: (page - 1) * pageSize,
}),