From e83d06a7025a6b85bb8e648b1a5361b18ea83ed3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 5 Aug 2021 14:29:44 +0200 Subject: Remove deprecated transcoding job names --- server/lib/job-queue/handlers/video-transcoding.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/server/lib/job-queue/handlers/video-transcoding.ts b/server/lib/job-queue/handlers/video-transcoding.ts index 36d9594af..2abb351ce 100644 --- a/server/lib/job-queue/handlers/video-transcoding.ts +++ b/server/lib/job-queue/handlers/video-transcoding.ts @@ -28,21 +28,10 @@ import { JobQueue } from '../job-queue' type HandlerFunction = (job: Bull.Job, payload: VideoTranscodingPayload, video: MVideoFullLight, user: MUser) => Promise -const handlers: { [ id: string ]: HandlerFunction } = { - // Deprecated, introduced in 3.1 - 'hls': handleHLSJob, +const handlers: { [ id in VideoTranscodingPayload['type'] ]: HandlerFunction } = { 'new-resolution-to-hls': handleHLSJob, - - // Deprecated, introduced in 3.1 - 'new-resolution': handleNewWebTorrentResolutionJob, 'new-resolution-to-webtorrent': handleNewWebTorrentResolutionJob, - - // Deprecated, introduced in 3.1 - 'merge-audio': handleWebTorrentMergeAudioJob, 'merge-audio-to-webtorrent': handleWebTorrentMergeAudioJob, - - // Deprecated, introduced in 3.1 - 'optimize': handleWebTorrentOptimizeJob, 'optimize-to-webtorrent': handleWebTorrentOptimizeJob } -- cgit v1.2.3