diff options
Diffstat (limited to 'server/models')
-rw-r--r-- | server/models/video/video.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index 92d07b5bc..ec3d5ddb0 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -40,7 +40,7 @@ import { UserRight, VideoPrivacy, VideoState } from '../../../shared' | |||
40 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' | 40 | import { VideoTorrentObject } from '../../../shared/models/activitypub/objects' |
41 | import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' | 41 | import { Video, VideoDetails, VideoFile } from '../../../shared/models/videos' |
42 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' | 42 | import { VideoFilter } from '../../../shared/models/videos/video-query.type' |
43 | import { createTorrentPromise, peertubeTruncate } from '../../helpers/core-utils' | 43 | import { peertubeTruncate } from '../../helpers/core-utils' |
44 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' | 44 | import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc' |
45 | import { isArray, isBooleanValid } from '../../helpers/custom-validators/misc' | 45 | import { isArray, isBooleanValid } from '../../helpers/custom-validators/misc' |
46 | import { | 46 | import { |
@@ -117,6 +117,7 @@ import { VideoPlaylistElementModel } from './video-playlist-element' | |||
117 | import { CONFIG } from '../../initializers/config' | 117 | import { CONFIG } from '../../initializers/config' |
118 | import { ThumbnailModel } from './thumbnail' | 118 | import { ThumbnailModel } from './thumbnail' |
119 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' | 119 | import { ThumbnailType } from '../../../shared/models/videos/thumbnail.type' |
120 | import { createTorrentPromise } from '../../helpers/webtorrent' | ||
120 | 121 | ||
121 | // FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation | 122 | // FIXME: Define indexes here because there is an issue with TS and Sequelize.literal when called directly in the annotation |
122 | const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [ | 123 | const indexes: (ModelIndexesOptions & { where?: WhereOptions })[] = [ |