Fix: User search & Event
Deskripsi: - Tampilan avatar dan username ## NO Issue
This commit is contained in:
17
src/app_modules/_global/fun/get/fun_check_profile.tsx
Normal file
17
src/app_modules/_global/fun/get/fun_check_profile.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
"use server";
|
||||
|
||||
import { prisma } from "@/app/lib";
|
||||
|
||||
export async function funGlobal_CheckProfile({
|
||||
profileId,
|
||||
}: {
|
||||
profileId: string;
|
||||
}) {
|
||||
const res = await prisma.profile.findUnique({
|
||||
where: {
|
||||
id: profileId,
|
||||
},
|
||||
});
|
||||
|
||||
return res;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
import { funCheckToken } from "./fun_cek_token";
|
||||
import { funGlobal_CheckProfile } from "./fun_check_profile";
|
||||
import { funGlobal_getNomorAdmin } from "./fun_get_nomor_admin";
|
||||
import { funGetUserIdByToken } from "./fun_get_user_id_by_token";
|
||||
import { funGlobal_getMasterKategoriApp } from "./fun_master_kategori_app";
|
||||
@@ -7,3 +8,4 @@ export { funGlobal_getMasterKategoriApp };
|
||||
export { funGlobal_getNomorAdmin };
|
||||
export { funCheckToken };
|
||||
export { funGetUserIdByToken };
|
||||
export { funGlobal_CheckProfile };
|
||||
|
||||
Reference in New Issue
Block a user