Feature logs

Deskripsi:
- Fitur baru log untuk melihat error pada server upload
- Baru di terapkan di create profile
This commit is contained in:
2024-12-16 15:41:02 +08:00
parent 4dd98c6183
commit 0bdc25b1e6
19 changed files with 815 additions and 349 deletions

View File

@@ -0,0 +1,11 @@
import { DIRECTORY_ID } from "@/app/lib";
export async function funGetDirectoryNameByValue({
value,
}: {
value?: string | null;
}) {
if (!value) return null;
const object: any = DIRECTORY_ID;
return Object.keys(object).find((key) => object[key] === value);
}

View File

@@ -1,5 +1,5 @@
import { funGlobal_CheckProfile } from "./fun_check_profile";
import { funGetDirectoryNameByValue } from "./fun_get_directory_name";
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";
@@ -8,3 +8,4 @@ export { funGlobal_getMasterKategoriApp };
export { funGlobal_getNomorAdmin };
export { funGetUserIdByToken };
export { funGlobal_CheckProfile };
export { funGetDirectoryNameByValue };