feat: now system do not show system role

This commit is contained in:
Methapon2001 2024-08-13 17:07:05 +07:00
parent a677c6879d
commit ab08492304

View file

@ -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([