]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Remove deprecated transcoding job names
authorChocobozzz <me@florianbigard.com>
Thu, 5 Aug 2021 12:29:44 +0000 (14:29 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 5 Aug 2021 12:29:44 +0000 (14:29 +0200)
server/lib/job-queue/handlers/video-transcoding.ts

index 36d9594af998f4e64103ef1093bdb12c5bedf9c6..2abb351ce6aeafbcdf1d78d9191e65fa328b7b81 100644 (file)
@@ -28,21 +28,10 @@ import { JobQueue } from '../job-queue'
 
 type HandlerFunction = (job: Bull.Job, payload: VideoTranscodingPayload, video: MVideoFullLight, user: MUser) => Promise<any>
 
-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
 }