fix
## Deskripsi: - Optimalisasi admin voting ## No issue
This commit is contained in:
13
src/app_modules/_global/fun/get/fun_get_nomor_admin.ts
Normal file
13
src/app_modules/_global/fun/get/fun_get_nomor_admin.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
|
||||
export async function funGlobal_getNomorAdmin() {
|
||||
const data = await prisma.nomorAdmin.findFirst({
|
||||
where: {
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
||||
return data
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import { funGlobal_getNomorAdmin } from "./fun_get_nomor_admin";
|
||||
import { funGlobal_getMasterKategoriApp } from "./fun_master_kategori_app";
|
||||
|
||||
export { funGlobal_getMasterKategoriApp };
|
||||
export { funGlobal_getNomorAdmin };
|
||||
|
||||
Reference in New Issue
Block a user