QC User & Admin Responsive : Menu Kesehatan - Ekonomi
This commit is contained in:
@@ -7,6 +7,7 @@ type FormCreate = Prisma.KontakDaruratGetPayload<{
|
||||
name: true;
|
||||
deskripsi: true;
|
||||
imageId: true;
|
||||
whatsapp: true;
|
||||
};
|
||||
}>;
|
||||
export default async function kontakDaruratCreate(context: Context) {
|
||||
@@ -17,6 +18,7 @@ export default async function kontakDaruratCreate(context: Context) {
|
||||
name: body.name,
|
||||
deskripsi: body.deskripsi,
|
||||
imageId: body.imageId,
|
||||
whatsapp: body.whatsapp,
|
||||
}
|
||||
})
|
||||
return {
|
||||
|
||||
@@ -14,6 +14,7 @@ const KontakDarurat = new Elysia({
|
||||
name: t.String(),
|
||||
deskripsi: t.String(),
|
||||
imageId: t.String(),
|
||||
whatsapp: t.String(),
|
||||
})
|
||||
})
|
||||
.get("/find-many", kontakDaruratFindMany)
|
||||
@@ -33,6 +34,7 @@ const KontakDarurat = new Elysia({
|
||||
name: t.String(),
|
||||
deskripsi: t.String(),
|
||||
imageId: t.String(),
|
||||
whatsapp: t.String(),
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
@@ -10,6 +10,7 @@ type FormUpdate = Prisma.KontakDaruratGetPayload<{
|
||||
name: true;
|
||||
deskripsi: true;
|
||||
imageId: true;
|
||||
whatsapp: true;
|
||||
}
|
||||
}>
|
||||
export default async function kontakDaruratUpdate(context: Context) {
|
||||
@@ -21,6 +22,7 @@ export default async function kontakDaruratUpdate(context: Context) {
|
||||
name,
|
||||
deskripsi,
|
||||
imageId,
|
||||
whatsapp,
|
||||
} = body;
|
||||
|
||||
if(!id) {
|
||||
@@ -75,6 +77,7 @@ export default async function kontakDaruratUpdate(context: Context) {
|
||||
name,
|
||||
deskripsi,
|
||||
imageId,
|
||||
whatsapp,
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user