Skip to content

Commit

Permalink
Updated API to check for cloud processing
Browse files Browse the repository at this point in the history
  • Loading branch information
SecondFeline committed Apr 2, 2024
1 parent b6b9ae5 commit a3ed243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/video/update/[id]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export async function PUT(req: NextRequest): Promise<NextResponse> {
},
})

if (!updatedVideo) {
if (!updatedVideo.isCloudProcessed) {
logger.error('Unable to update video information when video has not finished processing')
return NextResponse.json({ error: 'Unable to update videos that are currently being processed' }, { status: 500 })
}
Expand Down

0 comments on commit a3ed243

Please sign in to comment.