mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Correctly handle transcription conflicts
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user