Merge pull request 'upd: api update' (#81) from amalia/15-des-25 into main
Reviewed-on: http://wibugit.wibudev.com/wibu/jenna-mcp/pulls/81
This commit is contained in:
@@ -791,6 +791,7 @@ const PelayananRoute = new Elysia({
|
||||
jenis: item.jenis,
|
||||
}
|
||||
})
|
||||
console.log(hasil, item)
|
||||
|
||||
if (hasil && hasil.id) {
|
||||
const upd = await prisma.syaratDokumenPelayanan.upsert({
|
||||
@@ -808,16 +809,8 @@ const PelayananRoute = new Elysia({
|
||||
}
|
||||
})
|
||||
} else {
|
||||
const newData = await prisma.syaratDokumenPelayanan.create({
|
||||
data: {
|
||||
value: item.value,
|
||||
jenis: item.jenis,
|
||||
idPengajuanLayanan: pengajuan.id,
|
||||
idCategory: pengajuan.idCategory,
|
||||
}
|
||||
})
|
||||
return { success: false, message: 'dokumen tidak dapat diupload' }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user