Desc:
- Fitur admin:
1. Main page investasi
2. Konfirmasi investasi
3. Detail Konfirmasi investasi
#No isssu
This commit is contained in:
2023-10-27 17:45:12 +08:00
parent 5748f13d20
commit ffee7ce619
36 changed files with 767 additions and 28 deletions

View File

@@ -39,7 +39,7 @@ export default function CreateProfile({ userId }: { userId: any }) {
await funCreateNewProfile(body).then((res) => {
if (res.status === 201) {
toast("Data tersimpan");
return router.push("/dev/katalog/view");
return router.push(`/dev/katalog/${userId}`);
} else {
toast("Gagal")
}

View File

@@ -3,7 +3,7 @@
import prisma from "@/app/lib/prisma";
export default async function funCreateNewProfile(data: any) {
console.log(data);
// console.log(data);
const body = data;
const res = await prisma.profile.create({