upd: console data
This commit is contained in:
@@ -152,7 +152,7 @@ const PelayananRoute = new Elysia({
|
|||||||
})
|
})
|
||||||
.get("/detail", async ({ query }) => {
|
.get("/detail", async ({ query }) => {
|
||||||
const { nomerPengajuan } = query
|
const { nomerPengajuan } = query
|
||||||
|
console.log(nomerPengajuan, query)
|
||||||
const data = await prisma.pelayananAjuan.findFirst({
|
const data = await prisma.pelayananAjuan.findFirst({
|
||||||
where: {
|
where: {
|
||||||
OR: [
|
OR: [
|
||||||
@@ -302,6 +302,8 @@ const PelayananRoute = new Elysia({
|
|||||||
syaratDokumen: dataSyaratFix,
|
syaratDokumen: dataSyaratFix,
|
||||||
dataText: dataTextFix,
|
dataText: dataTextFix,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log(datafix)
|
||||||
return datafix
|
return datafix
|
||||||
}, {
|
}, {
|
||||||
query: t.Object({
|
query: t.Object({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import Elysia, { t } from "elysia"
|
import Elysia, { t } from "elysia"
|
||||||
import type { StatusPengaduan } from "generated/prisma"
|
import type { StatusPengaduan } from "generated/prisma"
|
||||||
import _, { head } from "lodash"
|
import _ from "lodash"
|
||||||
import { v4 as uuidv4 } from "uuid"
|
import { v4 as uuidv4 } from "uuid"
|
||||||
import { getLastUpdated } from "../lib/get-last-updated"
|
import { getLastUpdated } from "../lib/get-last-updated"
|
||||||
import { mimeToExtension } from "../lib/mimetypeToExtension"
|
import { mimeToExtension } from "../lib/mimetypeToExtension"
|
||||||
@@ -373,6 +373,7 @@ const PengaduanRoute = new Elysia({
|
|||||||
})
|
})
|
||||||
.get("/detail", async ({ query }) => {
|
.get("/detail", async ({ query }) => {
|
||||||
const { nomerPengaduan } = query
|
const { nomerPengaduan } = query
|
||||||
|
console.log(nomerPengaduan, query)
|
||||||
|
|
||||||
const data = await prisma.pengaduan.findFirst({
|
const data = await prisma.pengaduan.findFirst({
|
||||||
where: {
|
where: {
|
||||||
@@ -469,8 +470,10 @@ const PengaduanRoute = new Elysia({
|
|||||||
history: dataHistoryFix,
|
history: dataHistoryFix,
|
||||||
warga: warga,
|
warga: warga,
|
||||||
}
|
}
|
||||||
|
console.log(datafix)
|
||||||
|
|
||||||
return datafix
|
return datafix
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
detail: {
|
detail: {
|
||||||
summary: "Detail Pengaduan Warga by Nomer Pengaduan",
|
summary: "Detail Pengaduan Warga by Nomer Pengaduan",
|
||||||
|
|||||||
Reference in New Issue
Block a user