fix: order

This commit is contained in:
Methapon Metanipat 2024-08-23 15:01:05 +07:00
parent fffd20ea0f
commit 39df3f4cf2

View file

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