update api user

This commit is contained in:
lukman
2024-08-01 10:23:59 +08:00
parent 51c64c41eb
commit 4325e77d82

View File

@@ -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: {