aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/jobs/transcoding-job-scheduler
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-01-24 10:25:56 +0100
committerChocobozzz <me@florianbigard.com>2018-01-24 10:25:56 +0100
commit1f7ab4f3104df051f2d2cd4ed85ff6092c92efeb (patch)
tree69e7d2617fcd26ff2015adfb3ddc072f40978191 /server/lib/jobs/transcoding-job-scheduler
parent95d5969445734ece19ad603a6d8cd20edf77cec9 (diff)
downloadPeerTube-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.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 = {