Merge branch 'join' into lukman/1-agustus-2024

This commit is contained in:
Moh Alif Al Lukman
2024-08-01 10:09:37 +08:00
committed by GitHub
11 changed files with 208 additions and 36 deletions

View File

@@ -11,8 +11,10 @@ export async function getAllUser(req: NextRequest) {
const users = await prisma.user.findMany({
where: {
isActive: active == "true" ? true : false,
idVillage: idVillage,
idGroup: idGroup,
idUserRole: String(idUserRole),
idPosition: String(idPosition),
idVillage: String(idVillage),
idGroup: String(idGroup),
},
select: {
id: true,