aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-07 15:27:35 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-07 15:54:34 +0200
commitfdbda9e3d6564ec908733c7019305f6a3c363a9f (patch)
treec596034156f167e7cfafe41c4a3fc6adda488a0d /server/models/video
parent04de542abd940f9d2ca213fba3c68580c6c9b78a (diff)
downloadPeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.gz
PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.tar.zst
PeerTube-fdbda9e3d6564ec908733c7019305f6a3c363a9f.zip
Add tests for npm run scripts
Diffstat (limited to 'server/models/video')
-rw-r--r--server/models/video/author-interface.ts2
-rw-r--r--server/models/video/video-abuse-interface.ts2
-rw-r--r--server/models/video/video.ts2
3 files changed, 4 insertions, 2 deletions
diff --git a/server/models/video/author-interface.ts b/server/models/video/author-interface.ts
index dbcb85b17..52a00a1d3 100644
--- a/server/models/video/author-interface.ts
+++ b/server/models/video/author-interface.ts
@@ -1,7 +1,7 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import * as Promise from 'bluebird' 2import * as Promise from 'bluebird'
3 3
4import { PodInstance } from '../pod' 4import { PodInstance } from '../pod/pod-interface'
5 5
6export namespace AuthorMethods { 6export namespace AuthorMethods {
7 export type FindOrCreateAuthor = ( 7 export type FindOrCreateAuthor = (
diff --git a/server/models/video/video-abuse-interface.ts b/server/models/video/video-abuse-interface.ts
index abc82f7ac..978268926 100644
--- a/server/models/video/video-abuse-interface.ts
+++ b/server/models/video/video-abuse-interface.ts
@@ -1,7 +1,7 @@
1import * as Sequelize from 'sequelize' 1import * as Sequelize from 'sequelize'
2import * as Promise from 'bluebird' 2import * as Promise from 'bluebird'
3 3
4import { PodInstance } from '../pod' 4import { PodInstance } from '../pod/pod-interface'
5import { ResultList } from '../../../shared' 5import { ResultList } from '../../../shared'
6 6
7// Don't use barrel, import just what we need 7// Don't use barrel, import just what we need
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 8c69fe189..1134525f0 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -378,6 +378,8 @@ createTorrentAndSetInfoHash = function (this: VideoInstance, videoFile: VideoFil
378 return createTorrentPromise(this.getVideoFilePath(videoFile), options) 378 return createTorrentPromise(this.getVideoFilePath(videoFile), options)
379 .then(torrent => { 379 .then(torrent => {
380 const filePath = join(CONFIG.STORAGE.TORRENTS_DIR, this.getTorrentFileName(videoFile)) 380 const filePath = join(CONFIG.STORAGE.TORRENTS_DIR, this.getTorrentFileName(videoFile))
381 logger.info('Creating torrent %s.', filePath)
382
381 return writeFilePromise(filePath, torrent).then(() => torrent) 383 return writeFilePromise(filePath, torrent).then(() => torrent)
382 }) 384 })
383 .then(torrent => { 385 .then(torrent => {