Dashboard Admin
This commit is contained in:
@@ -17,3 +17,8 @@ model Potensi {
|
||||
name String @unique
|
||||
}
|
||||
|
||||
model LandingPage_Layanan {
|
||||
id String @id @default(cuid())
|
||||
deksripsi String
|
||||
}
|
||||
|
||||
|
||||
@@ -33,6 +33,22 @@ import prisma from '@/lib/prisma';
|
||||
}
|
||||
|
||||
console.log("potensi success ...")
|
||||
|
||||
// for (const lpl of ) {
|
||||
// await prisma.landingPage_Layanan.upsert({
|
||||
// where: {
|
||||
// id: lpl.id
|
||||
// },
|
||||
// update: {
|
||||
// deksripsi: lpl.deksripsi
|
||||
// },
|
||||
// create: {
|
||||
// deksripsi: lpl.deksripsi
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
|
||||
// console.log("landing page success ...")
|
||||
})().then(() => prisma.$disconnect()).catch((e) => {
|
||||
console.error(e)
|
||||
prisma.$disconnect()
|
||||
|
||||
Reference in New Issue
Block a user