upd: console data
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user