QC User & Admin Responsive : Menu Kesehatan - Ekonomi

This commit is contained in:
2025-10-03 10:17:06 +08:00
parent 8a6d8ed8db
commit f7fd9be255
55 changed files with 754 additions and 372 deletions

View File

@@ -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 {

View File

@@ -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(),
})
}
)

View File

@@ -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,
}
})