diff options
Diffstat (limited to 'server/lib/jobs')
-rw-r--r-- | server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts b/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts index 23677e8d5..f224a31b4 100644 --- a/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts +++ b/server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts | |||
@@ -3,6 +3,7 @@ import { VideoPrivacy } from '../../../../shared/models/videos' | |||
3 | import { logger } from '../../../helpers/logger' | 3 | import { logger } from '../../../helpers/logger' |
4 | import { computeResolutionsToTranscode } from '../../../helpers/utils' | 4 | import { computeResolutionsToTranscode } from '../../../helpers/utils' |
5 | import { sequelizeTypescript } from '../../../initializers' | 5 | import { sequelizeTypescript } from '../../../initializers' |
6 | import { JobModel } from '../../../models/job/job' | ||
6 | import { VideoModel } from '../../../models/video/video' | 7 | import { VideoModel } from '../../../models/video/video' |
7 | import { shareVideoByServerAndChannel } from '../../activitypub' | 8 | import { shareVideoByServerAndChannel } from '../../activitypub' |
8 | import { sendCreateVideo } from '../../activitypub/send' | 9 | import { sendCreateVideo } from '../../activitypub/send' |
@@ -55,7 +56,7 @@ async function onSuccess (jobId: number, video: VideoModel, jobScheduler: JobSch | |||
55 | if (resolutionsEnabled.length !== 0) { | 56 | if (resolutionsEnabled.length !== 0) { |
56 | try { | 57 | try { |
57 | await sequelizeTypescript.transaction(async t => { | 58 | await sequelizeTypescript.transaction(async t => { |
58 | const tasks: Bluebird<any>[] = [] | 59 | const tasks: Bluebird<JobModel>[] = [] |
59 | 60 | ||
60 | for (const resolution of resolutionsEnabled) { | 61 | for (const resolution of resolutionsEnabled) { |
61 | const dataInput = { | 62 | const dataInput = { |