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({

View File

@@ -1,3 +1,4 @@
import { TypeUser } from './lib/type_user';
import { apiUser } from "./api/api_user";
import createLogUser from "./log/fun/createLogUser";
import ViewEditProfile from "./profile/view/view_edit_profile";
@@ -7,3 +8,4 @@ export { ViewProfile };
export { ViewEditProfile };
export { apiUser };
export { createLogUser };
export type { TypeUser }

View File

@@ -0,0 +1,11 @@
export type TypeUser = {
id: string
name: string
nik: string
phone: string
email: string
gender: string
isActive: boolean,
group: string,
position: string
}[]