Merge pull request #365 from bipproduction/Nico/6-mar-25
Nico/6 mar 25 Fix Tampilan UI Collab & Forum
This commit is contained in:
@@ -2,14 +2,13 @@ import prisma from "@/lib/prisma";
|
||||
import backendLogger from "@/util/backendLogger";
|
||||
import { NextResponse } from "next/server";
|
||||
export async function GET(req: Request,
|
||||
{ params }: { params: { id: any } }) {
|
||||
{ params }: { params: { id: string } }) {
|
||||
try {
|
||||
let fixData;
|
||||
const { id } = params
|
||||
const data = await prisma.investasi_Invoice.findMany({
|
||||
const data = await prisma.investasi_Invoice.findUnique({
|
||||
where: {
|
||||
investasiId: id,
|
||||
isActive: true,
|
||||
id: id
|
||||
},
|
||||
include: {
|
||||
Author: true,
|
||||
@@ -18,6 +17,7 @@ export async function GET(req: Request,
|
||||
MasterBank: true,
|
||||
}
|
||||
})
|
||||
|
||||
fixData = {
|
||||
data: data,
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ export async function GET(
|
||||
MasterBank: true,
|
||||
},
|
||||
});
|
||||
|
||||
const nCount = await prisma.investasi_Invoice.count({
|
||||
where: {
|
||||
investasiId: id,
|
||||
|
||||
Reference in New Issue
Block a user