diff options
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/runners/job-files.ts | 4 |
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' | |||
2 | import { param } from 'express-validator' | 2 | import { param } from 'express-validator' |
3 | import { basename } from 'path' | 3 | import { basename } from 'path' |
4 | import { isSafeFilename } from '@server/helpers/custom-validators/misc' | 4 | import { isSafeFilename } from '@server/helpers/custom-validators/misc' |
5 | import { hasVideoStudioTaskFile, HttpStatusCode, RunnerJobVideoEditionTranscodingPayload } from '@shared/models' | 5 | import { hasVideoStudioTaskFile, HttpStatusCode, RunnerJobStudioTranscodingPayload } from '@shared/models' |
6 | import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared' | 6 | import { areValidationErrors, doesVideoExist, isValidVideoIdParam } from '../shared' |
7 | 7 | ||
8 | const tags = [ 'runner' ] | 8 | const 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)) { |