aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/runners/job-files.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/runners/job-files.ts b/server/middlewares/validators/runners/job-files.ts
index e5afff0e5..57c27fcfe 100644
--- a/server/middlewares/validators/runners/job-files.ts
+++ b/server/middlewares/validators/runners/job-files.ts
@@ -2,7 +2,7 @@ import express from 'express'
2import { param } from 'express-validator' 2import { param } from 'express-validator'
3import { basename } from 'path' 3import { basename } from 'path'
4import { isSafeFilename } from '@server/helpers/custom-validators/misc' 4import { isSafeFilename } from '@server/helpers/custom-validators/misc'
5import { hasVideoStudioTaskFile, HttpStatusCode, RunnerJobVideoEditionTranscodingPayload } from '@shared/models' 5import { hasVideoStudioTaskFile, HttpStatusCode, RunnerJobStudioTranscodingPayload } from '@shared/models'
6import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared' 6import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared'
7 7
8const tags = [ 'runner' ] 8const tags = [ 'runner' ]
@@ -37,7 +37,7 @@ export const runnerJobGetVideoStudioTaskFileValidator = [
37 37
38 const filename = req.params.filename 38 const filename = req.params.filename
39 39
40 const payload = res.locals.runnerJob.payload as RunnerJobVideoEditionTranscodingPayload 40 const payload = res.locals.runnerJob.payload as RunnerJobStudioTranscodingPayload
41 41
42 const found = Array.isArray(payload?.tasks) && payload.tasks.some(t => { 42 const found = Array.isArray(payload?.tasks) && payload.tasks.some(t => {
43 if (hasVideoStudioTaskFile(t)) { 43 if (hasVideoStudioTaskFile(t)) {