fix: data ordering
This commit is contained in:
parent
112bd0eb23
commit
120e2942b8
6 changed files with 8 additions and 0 deletions
|
|
@ -106,6 +106,7 @@ export class CustomerBranchController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.customerBranch.findMany({
|
||||
orderBy: { createdAt: "asc" },
|
||||
include: {
|
||||
province: true,
|
||||
district: true,
|
||||
|
|
@ -160,6 +161,7 @@ export class CustomerBranchController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.employee.findMany({
|
||||
orderBy: { createdAt: "asc" },
|
||||
include: {
|
||||
province: true,
|
||||
district: true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue