Correctly handle transcription conflicts

This commit is contained in:
Chocobozzz
2024-06-28 11:35:48 +02:00
parent 3c9d1ff5e3
commit 3a71086e35
4 changed files with 62 additions and 5 deletions

View File

@@ -83,6 +83,7 @@ export const generateVideoCaptionValidator = [
if (captions.length !== 0) {
return res.fail({
status: HttpStatusCode.BAD_REQUEST_400,
type: ServerErrorCode.VIDEO_ALREADY_HAS_CAPTIONS,
message: 'This video already has captions'
})
}