# fix
## Deskripsi: - Perubahan tampilan notifikasi - Pin map sesuai logo - Pin map bisa custom ### No Issue
This commit is contained in:
@@ -23,6 +23,8 @@ import nomor_admin from "../../../bin/seeder/nomor_admin.json";
|
||||
import userRole from "../../../bin/seeder/user_role.json";
|
||||
import userSeeder from "../../../bin/seeder/user_seeder.json";
|
||||
import voting_status from "../../../bin/seeder/voting/master_status.json";
|
||||
import { master_kategori_app } from "@/bin/seeder/master";
|
||||
import { new_status_transaksi_investasi } from "@/bin/seeder/investasi";
|
||||
|
||||
export async function generate_seeder() {
|
||||
for (let i of userRole) {
|
||||
@@ -404,5 +406,37 @@ export async function generate_seeder() {
|
||||
});
|
||||
}
|
||||
|
||||
for (let a of master_kategori_app) {
|
||||
await prisma.masterKategoriApp.upsert({
|
||||
where: {
|
||||
id: a.id,
|
||||
},
|
||||
create: {
|
||||
id: a.id,
|
||||
name: a.name,
|
||||
},
|
||||
update: {
|
||||
id: a.id,
|
||||
name: a.name,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
for (let a of new_status_transaksi_investasi) {
|
||||
await prisma.investasiMaster_StatusInvoice.upsert({
|
||||
where: {
|
||||
id: a.id,
|
||||
},
|
||||
create: {
|
||||
id: a.id,
|
||||
name: a.name,
|
||||
},
|
||||
update: {
|
||||
id: a.id,
|
||||
name: a.name,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
return { status: 200, success: true };
|
||||
}
|
||||
|
||||
13
src/app_modules/_global/fun/get/fun_master_kategori_app.ts
Normal file
13
src/app_modules/_global/fun/get/fun_master_kategori_app.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
"use server";
|
||||
|
||||
import prisma from "@/app/lib/prisma";
|
||||
|
||||
export async function funGlobal_getMasterKategoriApp() {
|
||||
const data = await prisma.masterKategoriApp.findMany({
|
||||
where: {
|
||||
isActive: true,
|
||||
},
|
||||
});
|
||||
|
||||
return data;
|
||||
}
|
||||
3
src/app_modules/_global/fun/get/index.ts
Normal file
3
src/app_modules/_global/fun/get/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { funGlobal_getMasterKategoriApp } from "./fun_master_kategori_app";
|
||||
|
||||
export { funGlobal_getMasterKategoriApp };
|
||||
Reference in New Issue
Block a user