diff options
Diffstat (limited to 'server/lib/job-queue/handlers/video-file-import.ts')
-rw-r--r-- | server/lib/job-queue/handlers/video-file-import.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/job-queue/handlers/video-file-import.ts b/server/lib/job-queue/handlers/video-file-import.ts index 18823ee9c..22e4d0cf1 100644 --- a/server/lib/job-queue/handlers/video-file-import.ts +++ b/server/lib/job-queue/handlers/video-file-import.ts | |||
@@ -9,7 +9,7 @@ import { getVideoFileFPS, getVideoFileResolution } from '../../../helpers/ffprob | |||
9 | import { logger } from '../../../helpers/logger' | 9 | import { logger } from '../../../helpers/logger' |
10 | import { VideoModel } from '../../../models/video/video' | 10 | import { VideoModel } from '../../../models/video/video' |
11 | import { VideoFileModel } from '../../../models/video/video-file' | 11 | import { VideoFileModel } from '../../../models/video/video-file' |
12 | import { publishNewResolutionIfNeeded } from './video-transcoding' | 12 | import { onNewWebTorrentFileResolution } from './video-transcoding' |
13 | 13 | ||
14 | async function processVideoFileImport (job: Bull.Job) { | 14 | async function processVideoFileImport (job: Bull.Job) { |
15 | const payload = job.data as VideoFileImportPayload | 15 | const payload = job.data as VideoFileImportPayload |
@@ -24,7 +24,7 @@ async function processVideoFileImport (job: Bull.Job) { | |||
24 | 24 | ||
25 | await updateVideoFile(video, payload.filePath) | 25 | await updateVideoFile(video, payload.filePath) |
26 | 26 | ||
27 | await publishNewResolutionIfNeeded(video) | 27 | await onNewWebTorrentFileResolution(video) |
28 | return video | 28 | return video |
29 | } | 29 | } |
30 | 30 | ||