diff options
Diffstat (limited to 'server/models/video')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 2a1226f6d..8b58b393b 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -28,7 +28,7 @@ import { | |||
28 | } from 'sequelize-typescript' | 28 | } from 'sequelize-typescript' |
29 | import { VideoPrivacy, VideoResolution } from '../../../shared' | 29 | import { VideoPrivacy, VideoResolution } from '../../../shared' |
30 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' | 30 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' |
31 | import { Video, VideoDetails } from '../../../shared/models/videos' | 31 | import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' |
32 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' | 32 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' |
33 | import { activityPubCollection } from '../../helpers/activitypub' | 33 | import { activityPubCollection } from '../../helpers/activitypub' |
34 | import { | 34 | import { |
@@ -1020,7 +1020,7 @@ export class VideoModel extends Model<VideoModel> { | |||
1020 | size: videoFile.size, | 1020 | size: videoFile.size, |
1021 | torrentUrl: this.getTorrentUrl(videoFile, baseUrlHttp), | 1021 | torrentUrl: this.getTorrentUrl(videoFile, baseUrlHttp), |
1022 | fileUrl: this.getVideoFileUrl(videoFile, baseUrlHttp) | 1022 | fileUrl: this.getVideoFileUrl(videoFile, baseUrlHttp) |
1023 | } | 1023 | } as VideoFile |
1024 | }) | 1024 | }) |
1025 | .sort((a, b) => { | 1025 | .sort((a, b) => { |
1026 | if (a.resolution.id < b.resolution.id) return 1 | 1026 | if (a.resolution.id < b.resolution.id) return 1 |