feat : update discussion

Deskripsi
- update discussion

No issue
This commit is contained in:
lukman
2024-08-14 10:14:52 +08:00
parent 15d93abc97
commit f1b0560829
12 changed files with 165 additions and 71 deletions

View File

@@ -269,8 +269,6 @@ export async function POST(request: Request, context: { params: { id: string } }
const member = await request.json();
const idDivision = context.params.id;
console.log("amalia", member)
const data = await prisma.division.count({
where: {

View File

@@ -55,6 +55,8 @@ export async function GET(request: Request) {
jumlah_member: v.DivisionMember.length
}))
console.log(allData)
return NextResponse.json({ success: true, message: "Berhasil mendapatkan divisi", data: allData, }, { status: 200 });
} catch (error) {