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

@ -166,7 +166,7 @@ export class UserController extends Controller {
const [result, total] = await prisma.$transaction([
prisma.user.findMany({
orderBy: { createdAt: "asc" },
orderBy: [{ statusOrder: "asc" }, { createdAt: "asc" }],
include: {
province: true,
district: true,