feat: order by status field

This commit is contained in:
Methapon2001 2024-06-24 13:20:59 +07:00
parent 0bd2c1ecf2
commit 09cf32d3c7
8 changed files with 14 additions and 8 deletions

View file

@ -175,7 +175,7 @@ export class CustomerController extends Controller {
}
: undefined,
},
orderBy: { createdAt: "asc" },
orderBy: [{ statusOrder: "asc" }, { createdAt: "asc" }],
where,
take: pageSize,
skip: (page - 1) * pageSize,