aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/jobs')
-rw-r--r--server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts3
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'
3import { logger } from '../../../helpers/logger' 3import { logger } from '../../../helpers/logger'
4import { computeResolutionsToTranscode } from '../../../helpers/utils' 4import { computeResolutionsToTranscode } from '../../../helpers/utils'
5import { sequelizeTypescript } from '../../../initializers' 5import { sequelizeTypescript } from '../../../initializers'
6import { JobModel } from '../../../models/job/job'
6import { VideoModel } from '../../../models/video/video' 7import { VideoModel } from '../../../models/video/video'
7import { shareVideoByServerAndChannel } from '../../activitypub' 8import { shareVideoByServerAndChannel } from '../../activitypub'
8import { sendCreateVideo } from '../../activitypub/send' 9import { 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 = {