feat: order by status field
This commit is contained in:
parent
0bd2c1ecf2
commit
09cf32d3c7
8 changed files with 14 additions and 8 deletions
|
|
@ -166,7 +166,7 @@ export class UserController extends Controller {
|
|||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
prisma.user.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