upd: console data

This commit is contained in:
2025-12-11 14:18:43 +08:00
parent 3f567b57b2
commit 91e5f6a77e
2 changed files with 7 additions and 2 deletions

View File

@@ -152,7 +152,7 @@ const PelayananRoute = new Elysia({
})
.get("/detail", async ({ query }) => {
const { nomerPengajuan } = query
console.log(nomerPengajuan, query)
const data = await prisma.pelayananAjuan.findFirst({
where: {
OR: [
@@ -302,6 +302,8 @@ const PelayananRoute = new Elysia({
syaratDokumen: dataSyaratFix,
dataText: dataTextFix,
}
console.log(datafix)
return datafix
}, {
query: t.Object({

View File

@@ -1,6 +1,6 @@
import Elysia, { t } from "elysia"
import type { StatusPengaduan } from "generated/prisma"
import _, { head } from "lodash"
import _ from "lodash"
import { v4 as uuidv4 } from "uuid"
import { getLastUpdated } from "../lib/get-last-updated"
import { mimeToExtension } from "../lib/mimetypeToExtension"
@@ -373,6 +373,7 @@ const PengaduanRoute = new Elysia({
})
.get("/detail", async ({ query }) => {
const { nomerPengaduan } = query
console.log(nomerPengaduan, query)
const data = await prisma.pengaduan.findFirst({
where: {
@@ -469,8 +470,10 @@ const PengaduanRoute = new Elysia({
history: dataHistoryFix,
warga: warga,
}
console.log(datafix)
return datafix
}, {
detail: {
summary: "Detail Pengaduan Warga by Nomer Pengaduan",