diff --git a/app/api/applications/delete/route.ts b/app/api/applications/delete/route.ts index e6bfe2f..a3132f3 100644 --- a/app/api/applications/delete/route.ts +++ b/app/api/applications/delete/route.ts @@ -14,6 +14,10 @@ export async function POST(request: NextRequest) { where: { id: id } }); + await prisma.uptime_history.deleteMany({ + where: { applicationId: id } + }); + return NextResponse.json({ success: true }); } catch (error: any) { return NextResponse.json({ error: error.message }, { status: 500 });