Update 2 files

This commit is contained in:
[dyad] committed 2026-08-02 14:01:30 +02:00
1 parent c84b080fb8
commit a97794acf8
2 files changed
+10 -2

No files matched your search

@@ -43,8 +43,6 @@ export async function POST(request: Request) {
if (!parentLink) {
return NextResponse.json({ error: 'You can only approve reports for your children' }, { status: 403 });
}
}
const newStatus = action === 'approve' ? 'approved' : 'rejected';
const updated = await db.illnessReport.update({
where: { id: reportId },