From 571389d43b8fc8aaf27e77c06f19b320b08dbbc9 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 10 Nov 2017 17:27:49 +0100 Subject: Make it compile at least --- .../transcoding-job-scheduler/transcoding-job-scheduler.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts') diff --git a/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts b/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts index d7c614fb8..c5efe8eeb 100644 --- a/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts +++ b/server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts @@ -1,10 +1,14 @@ -import { JobScheduler, JobHandler } from '../job-scheduler' - +import { JobCategory } from '../../../../shared' +import { JobHandler, JobScheduler } from '../job-scheduler' import * as videoFileOptimizer from './video-file-optimizer-handler' import * as videoFileTranscoder from './video-file-transcoder-handler' -import { JobCategory } from '../../../../shared' +import { VideoInstance } from '../../../models/video/video-interface' -const jobHandlers: { [ handlerName: string ]: JobHandler } = { +type TranscodingJobPayload = { + videoUUID: string + resolution?: number +} +const jobHandlers: { [ handlerName: string ]: JobHandler } = { videoFileOptimizer, videoFileTranscoder } @@ -13,5 +17,6 @@ const jobCategory: JobCategory = 'transcoding' const transcodingJobScheduler = new JobScheduler(jobCategory, jobHandlers) export { + TranscodingJobPayload, transcodingJobScheduler } -- cgit v1.2.3