feat
Desc: - Fitur admin: 1. Main page investasi 2. Konfirmasi investasi 3. Detail Konfirmasi investasi #No isssu
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user