aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/jobs/handlers/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/jobs/handlers/index.ts')
-rw-r--r--server/lib/jobs/handlers/index.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/jobs/handlers/index.ts b/server/lib/jobs/handlers/index.ts
index 5941427a1..cef1f89a9 100644
--- a/server/lib/jobs/handlers/index.ts
+++ b/server/lib/jobs/handlers/index.ts
@@ -2,7 +2,7 @@ import * as videoFileOptimizer from './video-file-optimizer'
2import * as videoFileTranscoder from './video-file-transcoder' 2import * as videoFileTranscoder from './video-file-transcoder'
3 3
4export interface JobHandler<T> { 4export interface JobHandler<T> {
5 process (data: object): T 5 process (data: object, jobId: number): T
6 onError (err: Error, jobId: number) 6 onError (err: Error, jobId: number)
7 onSuccess (jobId: number, jobResult: T) 7 onSuccess (jobId: number, jobResult: T)
8} 8}