From 4325e77d82c7abd5f20da5c08b33ee87bb0abfd2 Mon Sep 17 00:00:00 2001 From: lukman Date: Thu, 1 Aug 2024 10:23:59 +0800 Subject: [PATCH] update api user --- src/module/user/api/get/getAllUser.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/module/user/api/get/getAllUser.ts b/src/module/user/api/get/getAllUser.ts index 5c6dad2..e2beacc 100644 --- a/src/module/user/api/get/getAllUser.ts +++ b/src/module/user/api/get/getAllUser.ts @@ -7,6 +7,8 @@ export async function getAllUser(req: NextRequest) { const idGroup = "2"; const idVillage = "121212"; const active = searchParams.get("active"); + const idPosition = searchParams.get("idPosition"); + const idUserRole = searchParams.get("idUserRole"); const users = await prisma.user.findMany({ where: {