fix: order
This commit is contained in:
parent
fffd20ea0f
commit
39df3f4cf2
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue