diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-04 15:55:51 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | ab14f0e0dca878dbaccc8f6a895a68e4269c9873 (patch) | |
tree | 078247f8620ee1f3260b8c3e3336059863273eb8 /server/middlewares | |
parent | 5e47f6ab984a7d00782e4c7030afffa1ba480add (diff) | |
download | PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.gz PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.tar.zst PeerTube-ab14f0e0dca878dbaccc8f6a895a68e4269c9873.zip |
Prefer video studio instead of video edition
Clearer and easier to find in the project
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)) { |