fix: update sort
This commit is contained in:
parent
78e248c305
commit
3ee1f5ed0f
1 changed files with 1 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ export class CustomerBranchController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.customerBranch.findMany({
|
||||
orderBy: [{ statusOrder: "asc" }, { createdAt: "asc" }],
|
||||
orderBy: [{ code: "asc" }, { statusOrder: "asc" }, { createdAt: "asc" }],
|
||||
include: {
|
||||
customer: includeCustomer,
|
||||
province: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue