diff options
author | Chocobozzz <me@florianbigard.com> | 2018-01-24 10:25:56 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-01-24 10:25:56 +0100 |
commit | 1f7ab4f3104df051f2d2cd4ed85ff6092c92efeb (patch) | |
tree | 69e7d2617fcd26ff2015adfb3ddc072f40978191 /server/lib/jobs/transcoding-job-scheduler | |
parent | 95d5969445734ece19ad603a6d8cd20edf77cec9 (diff) | |
download | PeerTube-1f7ab4f3104df051f2d2cd4ed85ff6092c92efeb.tar.gz PeerTube-1f7ab4f3104df051f2d2cd4ed85ff6092c92efeb.tar.zst PeerTube-1f7ab4f3104df051f2d2cd4ed85ff6092c92efeb.zip |
Upgrade server dependencies
Diffstat (limited to 'server/lib/jobs/transcoding-job-scheduler')
-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 = { |