This commit is contained in:
Waleed Latif
2026-03-17 17:55:01 -07:00
parent f6359ff633
commit 3ab6e65fea

View File

@@ -159,10 +159,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
deleteError
)
await deleteDocument(firstDocument.documentId, requestId).catch(() => {})
return NextResponse.json(
{ error: 'Failed to replace existing document' },
{ status: 500 }
)
return NextResponse.json({ error: 'Failed to replace existing document' }, { status: 500 })
}
}