feat: now system do not show system role
This commit is contained in:
parent
a677c6879d
commit
ab08492304
1 changed files with 3 additions and 0 deletions
|
|
@ -201,6 +201,9 @@ export class UserController extends Controller {
|
|||
{ email: { contains: query }, zipCode, userType },
|
||||
{ telephoneNo: { contains: query }, zipCode, userType },
|
||||
],
|
||||
AND: {
|
||||
userRole: { not: "system" },
|
||||
},
|
||||
} satisfies Prisma.UserWhereInput;
|
||||
|
||||
const [result, total] = await prisma.$transaction([
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue