X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmodels%2Fvideo%2Fvideo-caption.ts;h=5fbcd6e3b9f278512ff3091b1e97dad8d01c1c8e;hb=b42c2c7e89a64ed730d8140840fe74a13c31f2a4;hp=bbda0f3eeb60626a7607776df62ae9d913f6f20c;hpb=ff0ea0cd8e3b0ecad445672deb75b193babeddc2;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/models/video/video-caption.ts b/server/models/video/video-caption.ts index bbda0f3ee..5fbcd6e3b 100644 --- a/server/models/video/video-caption.ts +++ b/server/models/video/video-caption.ts @@ -15,9 +15,9 @@ import { Table, UpdatedAt } from 'sequelize-typescript' -import { v4 as uuidv4 } from 'uuid' import { MVideo, MVideoCaption, MVideoCaptionFormattable, MVideoCaptionVideo } from '@server/types/models' -import { AttributesOnly } from '@shared/core-utils' +import { buildUUID } from '@shared/extra-utils' +import { AttributesOnly } from '@shared/typescript-utils' import { VideoCaption } from '../../../shared/models/videos/caption/video-caption.model' import { isVideoCaptionLanguageValid } from '../../helpers/custom-validators/video-captions' import { logger } from '../../helpers/logger' @@ -91,9 +91,9 @@ export class VideoCaptionModel extends Model