Table,
UpdatedAt
} from 'sequelize-typescript'
-import { buildUUID } from '@shared/core-utils/uuid'
import { MVideo, MVideoCaption, MVideoCaptionFormattable, MVideoCaptionVideo } from '@server/types/models'
+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'
id: this.language,
label: VideoCaptionModel.getLanguageLabel(this.language)
},
- captionPath: this.getCaptionStaticPath()
+ captionPath: this.getCaptionStaticPath(),
+ updatedAt: this.updatedAt.toISOString()
}
}