tamabahan

This commit is contained in:
bipproduction
2025-10-09 17:23:08 +08:00
parent 57f8ce992b
commit 86d5b435f7

View File

@@ -238,10 +238,10 @@ const DarmasabaRoute = new Elysia({
}, {
body: t.Object({
jenis_laporan: t.String(),
name: t.String(),
phone: t.String(),
detail: t.String()
jenis_laporan: t.String({ minLength: 1, error: "jenis laporan harus diisi" }),
name: t.String({ minLength: 1, error: "name harus diisi" }),
phone: t.String({ minLength: 1, error: "phone harus diisi" }),
detail: t.String({ minLength: 1, error: "detail harus diisi" })
}),
detail: {
summary: "buat-pengaduan atau pelaporan",