fix: data ordering
This commit is contained in:
parent
112bd0eb23
commit
120e2942b8
6 changed files with 8 additions and 0 deletions
|
|
@ -45,6 +45,7 @@ export class BranchUserController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.branchUser.findMany({
|
||||
orderBy: { user: { createdAt: "asc" } },
|
||||
include: {
|
||||
user: {
|
||||
include: {
|
||||
|
|
@ -138,6 +139,7 @@ export class UserBranchController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.branchUser.findMany({
|
||||
orderBy: { branch: { createdAt: "asc" } },
|
||||
include: {
|
||||
branch: {
|
||||
include: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue