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,
|
jenis: item.jenis,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
console.log(hasil, item)
|
||||||
|
|
||||||
if (hasil && hasil.id) {
|
if (hasil && hasil.id) {
|
||||||
const upd = await prisma.syaratDokumenPelayanan.upsert({
|
const upd = await prisma.syaratDokumenPelayanan.upsert({
|
||||||
@@ -808,16 +809,8 @@ const PelayananRoute = new Elysia({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
const newData = await prisma.syaratDokumenPelayanan.create({
|
return { success: false, message: 'dokumen tidak dapat diupload' }
|
||||||
data: {
|
|
||||||
value: item.value,
|
|
||||||
jenis: item.jenis,
|
|
||||||
idPengajuanLayanan: pengajuan.id,
|
|
||||||
idCategory: pengajuan.idCategory,
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user