Fix bug Order posExecutiveNameOrg
All checks were successful
Build & Deploy on Dev / build (push) Successful in 1m14s

This commit is contained in:
harid 2026-02-25 10:46:06 +07:00
parent 4268f93ed3
commit ea25979374

View file

@ -1030,7 +1030,7 @@ export class WorkflowController extends Controller {
if (body.sortBy) {
queryBuilder = queryBuilder.orderBy(
`entity.${body.sortBy}`,
`entity.${body.sortBy === "posExecutiveNameOrg" ? "posExecutiveName" : body.sortBy}`,
body.descending ? "DESC" : "ASC",
);
}