upd: link update pengajuan surat pada api
This commit is contained in:
@@ -593,7 +593,10 @@ const PelayananRoute = new Elysia({
|
|||||||
const { nomerPengajuan } = body
|
const { nomerPengajuan } = body
|
||||||
const data = await prisma.pelayananAjuan.findFirst({
|
const data = await prisma.pelayananAjuan.findFirst({
|
||||||
where: {
|
where: {
|
||||||
noPengajuan: nomerPengajuan
|
noPengajuan: {
|
||||||
|
equals: nomerPengajuan,
|
||||||
|
mode: "insensitive"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
select: {
|
select: {
|
||||||
id: true,
|
id: true,
|
||||||
@@ -774,6 +777,7 @@ const PelayananRoute = new Elysia({
|
|||||||
success: true,
|
success: true,
|
||||||
message: 'sukses',
|
message: 'sukses',
|
||||||
pengajuan: dataPengajuan,
|
pengajuan: dataPengajuan,
|
||||||
|
linkUpdate: `${process.env.BUN_PUBLIC_BASE_URL}/darmasaba/update-data-surat?pengajuan=${data.noPengajuan}`,
|
||||||
history: dataHistoryFix,
|
history: dataHistoryFix,
|
||||||
warga: warga,
|
warga: warga,
|
||||||
syaratDokumen: dataSyaratFix,
|
syaratDokumen: dataSyaratFix,
|
||||||
|
|||||||
Reference in New Issue
Block a user