Feature logs
Deskripsi: - Fitur baru log untuk melihat error pada server upload - Baru di terapkan di create profile
This commit is contained in:
11
src/app_modules/_global/fun/get/fun_get_directory_name.ts
Normal file
11
src/app_modules/_global/fun/get/fun_get_directory_name.ts
Normal 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);
|
||||
}
|
||||
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user