upd: api pelayanan
This commit is contained in:
@@ -362,10 +362,6 @@ const PelayananRoute = new Elysia({
|
||||
let dataInsertDataText = []
|
||||
|
||||
for (const item of syaratDokumen) {
|
||||
console.log('syarat dokumen', item)
|
||||
const jenisFix = (category?.syaratDokumen as Array<{ name: string; desc: string }>)
|
||||
?.find((v) => v.name == item.jenis || v.desc == item.jenis)?.name;
|
||||
console.log('jenis fix', jenisFix)
|
||||
dataInsertSyaratDokumen.push({
|
||||
idPengajuanLayanan: pengaduan.id,
|
||||
idCategory: idCategoryFix,
|
||||
@@ -375,9 +371,6 @@ const PelayananRoute = new Elysia({
|
||||
}
|
||||
|
||||
for (const item of dataText) {
|
||||
console.log('dataitem', item)
|
||||
const jenisFix = category?.dataText.find((v) => v.toLowerCase() == item.jenis.toLowerCase())
|
||||
console.log('data text fix', jenisFix)
|
||||
dataInsertDataText.push({
|
||||
idPengajuanLayanan: pengaduan.id,
|
||||
idCategory: idCategoryFix,
|
||||
@@ -386,8 +379,6 @@ const PelayananRoute = new Elysia({
|
||||
})
|
||||
}
|
||||
|
||||
console.log('datainsertsyaratdokumen', dataInsertSyaratDokumen)
|
||||
console.log('datainsertdatatext', dataInsertDataText)
|
||||
|
||||
await prisma.syaratDokumenPelayanan.createMany({
|
||||
data: dataInsertSyaratDokumen,
|
||||
|
||||
Reference in New Issue
Block a user