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

This commit is contained in:
Amalia
2024-08-02 15:16:01 +08:00
committed by GitHub
17 changed files with 197 additions and 108 deletions

View File

@@ -5,8 +5,8 @@ import { NextRequest } from "next/server";
export async function getAllUser(req: NextRequest) {
try {
const searchParams = req.nextUrl.searchParams;
const idGroup = "group1";
const idVillage = "desa1";
const idGroup = searchParams.get("idGroup");;
const idVillage = "121212";
const active = searchParams.get("active");
const users = await prisma.user.findMany({