diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-15 09:22:57 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 30ff39e7f07898ebb716c938123825c678b4e5af (patch) | |
tree | 338b55203ee757a0e5e3f2e449536b925c677556 /server/models/video/video.ts | |
parent | b2195fafc292d6761c25fe51ca4e0328ab403424 (diff) | |
download | PeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.tar.gz PeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.tar.zst PeerTube-30ff39e7f07898ebb716c938123825c678b4e5af.zip |
Move createTorrent in webtorrent utils
Diffstat (limited to 'server/models/video/video.ts')
-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 })[] = [ |