aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/job-queue/handlers/transcoding-job-builder.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/job-queue/handlers/transcoding-job-builder.ts')
-rw-r--r--server/lib/job-queue/handlers/transcoding-job-builder.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/job-queue/handlers/transcoding-job-builder.ts b/server/lib/job-queue/handlers/transcoding-job-builder.ts
index 8b4a877d7..cb45337df 100644
--- a/server/lib/job-queue/handlers/transcoding-job-builder.ts
+++ b/server/lib/job-queue/handlers/transcoding-job-builder.ts
@@ -36,7 +36,7 @@ async function processTranscodingJobBuilder (job: Job) {
36 for (const sequentialJobs of (payload.sequentialJobs || [])) { 36 for (const sequentialJobs of (payload.sequentialJobs || [])) {
37 await JobQueue.Instance.createSequentialJobFlow(...sequentialJobs) 37 await JobQueue.Instance.createSequentialJobFlow(...sequentialJobs)
38 38
39 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode', sequentialJobs.length) 39 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode', sequentialJobs.filter(s => !!s).length)
40 } 40 }
41} 41}
42 42