Fix QC Admin ( Inno )

- app.config.js
- app/(application)/(user)/forum/[id]/edit.tsx
- app/(application)/(user)/forum/[id]/index.tsx
- app/(application)/(user)/forum/create.tsx
- ios/HIPMIBadungConnect/Info.plist

### No Issue
This commit is contained in:
2025-12-05 17:12:15 +08:00
parent 276cf9e970
commit 3c2a8b3543
7 changed files with 39 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "hipmi", "name": "hipmi",
"version": "1.5.22", "version": "1.5.23",
"private": true, "private": true,
"prisma": { "prisma": {
"seed": "bun prisma/seed.ts" "seed": "bun prisma/seed.ts"

View File

@@ -1,5 +1,6 @@
import _ from "lodash"; import _ from "lodash";
import { NextResponse } from "next/server"; import { NextResponse } from "next/server";
import prisma from "@/lib/prisma";
export { GET }; export { GET };
@@ -13,7 +14,6 @@ async function GET(request: Request) {
console.log("[CATEGORY]", category); console.log("[CATEGORY]", category);
let fixData; let fixData;
try { try {
if (category === "dashboard") { if (category === "dashboard") {
const publish = await prisma.donasi.count({ const publish = await prisma.donasi.count({

View File

@@ -29,6 +29,11 @@ async function GET(request: Request, { params }: { params: { id: string } }) {
}, },
}, },
}, },
Event: {
select: {
tanggal: true,
},
},
}, },
}); });

View File

@@ -153,6 +153,7 @@ async function GET(request: Request) {
select: { select: {
id: true, id: true,
title: true, title: true,
tanggal: true,
Author: { Author: {
select: { select: {
id: true, id: true,

View File

@@ -11,6 +11,24 @@ async function POST(request: Request, { params }: { params: { id: string } }) {
console.log("[ID]", id); console.log("[ID]", id);
try { try {
const content = await prisma.forum_Komentar.findUnique({
where: {
id: id,
},
});
const reportList = await prisma.forumMaster_KategoriReport.findUnique({
where: {
id: data.categoryId,
},
});
const msg = `Report Komentar: "${content?.komentar}" dengan kategori \n\n\n${reportList?.title} : \n\n${reportList?.deskripsi}`;
const res = await fetch(
`https://wa.wibudev.com/code?nom=6282340374412&text=${msg}`,
{ cache: "no-cache" }
);
if (data.categoryId) { if (data.categoryId) {
fixData = await prisma.forum_ReportKomentar.create({ fixData = await prisma.forum_ReportKomentar.create({
data: { data: {

View File

@@ -11,6 +11,18 @@ async function POST(request: Request, { params }: { params: { id: string } }) {
console.log("[ID]", id); console.log("[ID]", id);
try { try {
const content = await prisma.forum_Posting.findUnique({
where: {
id: id,
},
});
const msg = `Report Postingan: "${content?.diskusi}"`;
const res = await fetch(
`https://wa.wibudev.com/code?nom=6282340374412&text=${msg}`,
{ cache: "no-cache" }
);
if (data.categoryId) { if (data.categoryId) {
fixData = await prisma.forum_ReportPosting.create({ fixData = await prisma.forum_ReportPosting.create({
data: { data: {

View File

@@ -23,6 +23,6 @@
"@/*": ["./src/*"] "@/*": ["./src/*"]
} }
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app_modules/investasi/proses_transaksi/view.jsx", "src/app/api/investasi/midtrans/[id]/route.ts", "src/app_modules/job/create/TextEdit.tsx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts", "src/app_modules/investasi/proses_transaksi/view.jsx", "src/app/api/investasi/midtrans/[id]/route.ts", "src/app_modules/job/create/TextEdit.tsx", "src/app/api/mobile/forum/[id]/report-comment/route.ts"],
"exclude": ["node_modules"] "exclude": ["node_modules"]
} }