## Deskripsi:
- Cek notif
## No Issue
This commit is contained in:
2024-08-26 17:18:09 +08:00
parent a6bb993b0d
commit 916c5c7d85
183 changed files with 720 additions and 584 deletions

View File

@@ -6,7 +6,6 @@ import pencarianInvestor from "./../../../bin/seeder/investasi/pencarian_investo
import periodeDeviden from "./../../../bin/seeder/investasi/periode_deviden.json";
import pembagianDeviden from "./../../../bin/seeder/investasi/pembagian_deviden.json";
import statusInvestasi from "./../../../bin/seeder/investasi/status_investasi.json";
import namaBank from "./../../../bin/seeder/investasi/nama_bank.json";
import statusTransaksiInvestasi from "./../../../bin/seeder/investasi/status_transaksi_investasi.json";
import jenisProgres from "../../../bin/seeder/investasi/master_progres.json";
import userSeeder from "../../../bin/seeder/user_seeder.json";
@@ -25,11 +24,11 @@ import collaboration_industri from "../../../bin/seeder/colab/master_industri.js
import collaboration_status from "../../../bin/seeder/colab/master_status.json";
import collaboration_jumlah_minimal_room from "../../../bin/seeder/colab/jumlah_minimal_room.json";
import nomor_admin from "../../../bin/seeder/nomor_admin.json";
import { master_nama_bank } from "@/bin/seeder/master";
export async function GET(req: Request) {
const dev = new URL(req.url).searchParams.get("dev");
if (dev === "DEV-HIPMI") {
for (let i of userRole) {
const data = await prisma.masterUserRole.upsert({
where: {
@@ -146,19 +145,21 @@ export async function GET(req: Request) {
});
}
for (let i of namaBank) {
for (let i of master_nama_bank) {
await prisma.masterBank.upsert({
where: {
id: i.id.toString(),
},
create: {
id: i.id.toString(),
name: i.name,
namaBank: i.namaBank,
namaAkun: i.namaAkun,
norek: i.norek.toString(),
},
update: {
id: i.id.toString(),
name: i.name,
namaBank: i.namaBank,
namaAkun: i.namaAkun,
norek: i.norek.toString(),
},
});

View File

@@ -1,5 +1,4 @@
import { Admin_KonfirmasiInvestasi } from "@/app_modules/admin/investasi";
import { funGetUserProfile } from "@/app_modules/fun_global/get_user_profile";
import getOneInvestasiById from "@/app_modules/investasi/fun/get_one_investasi_by_id";
export default async function Page({ params }: { params: { id: string } }) {

View File

@@ -1,8 +1,14 @@
import { LayoutMainInvestasi } from "@/app_modules/investasi";
import { Investasi_UiLayoutMain } from "@/app_modules/investasi/_ui";
import React from "react";
export default async function Layout({children}: {children: React.ReactNode}) {
return <>
<LayoutMainInvestasi>{children}</LayoutMainInvestasi>
export default async function Layout({
children,
}: {
children: React.ReactNode;
}) {
return (
<>
<Investasi_UiLayoutMain>{children}</Investasi_UiLayoutMain>
</>
}
);
}

View File

@@ -1,12 +1,12 @@
import { MainInvestasi } from "@/app_modules/investasi";
import { Investasi_UiBeranda } from "@/app_modules/investasi/_ui";
import { investasi_funGetAllPublish } from "@/app_modules/investasi/fun/get_all_investasi";
export default async function Page() {
const allData = await investasi_funGetAllPublish();
const allData = await investasi_funGetAllPublish({ page: 1 });
return (
<>
<MainInvestasi listData={allData as any} />
<Investasi_UiBeranda dataInvestasi={allData as any} />
</>
);
}