Skip to content

Commit 3ab6e65

Browse files
committed
lint
1 parent f6359ff commit 3ab6e65

File tree

1 file changed

+1
-4
lines changed
  • apps/sim/app/api/knowledge/[id]/documents/upsert

1 file changed

+1
-4
lines changed

apps/sim/app/api/knowledge/[id]/documents/upsert/route.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,7 @@ export async function POST(req: NextRequest, { params }: { params: Promise<{ id:
159159
deleteError
160160
)
161161
await deleteDocument(firstDocument.documentId, requestId).catch(() => {})
162-
return NextResponse.json(
163-
{ error: 'Failed to replace existing document' },
164-
{ status: 500 }
165-
)
162+
return NextResponse.json({ error: 'Failed to replace existing document' }, { status: 500 })
166163
}
167164
}
168165

0 commit comments

Comments
 (0)