diff options
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/friends.ts | 6 | ||||
-rw-r--r-- | server/lib/jobs/handlers/video-transcoder.ts | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/server/lib/friends.ts b/server/lib/friends.ts index d07433a5d..522cb82b3 100644 --- a/server/lib/friends.ts +++ b/server/lib/friends.ts | |||
@@ -103,7 +103,11 @@ function quickAndDirtyUpdateVideoToFriends (qaduParam: QaduParam, transaction?: | |||
103 | return createVideoQaduRequest(options, callback) | 103 | return createVideoQaduRequest(options, callback) |
104 | } | 104 | } |
105 | 105 | ||
106 | function quickAndDirtyUpdatesVideoToFriends (qadusParams: QaduParam[], transaction: Sequelize.Transaction, finalCallback: (err: Error) => void) { | 106 | function quickAndDirtyUpdatesVideoToFriends ( |
107 | qadusParams: QaduParam[], | ||
108 | transaction: Sequelize.Transaction, | ||
109 | finalCallback: (err: Error) => void | ||
110 | ) { | ||
107 | const tasks = [] | 111 | const tasks = [] |
108 | 112 | ||
109 | qadusParams.forEach(function (qaduParams) { | 113 | qadusParams.forEach(function (qaduParams) { |
diff --git a/server/lib/jobs/handlers/video-transcoder.ts b/server/lib/jobs/handlers/video-transcoder.ts index efa18ef2d..6f606a7d3 100644 --- a/server/lib/jobs/handlers/video-transcoder.ts +++ b/server/lib/jobs/handlers/video-transcoder.ts | |||
@@ -13,9 +13,9 @@ function process (data: { id: string }, callback: (err: Error, videoInstance?: V | |||
13 | }) | 13 | }) |
14 | } | 14 | } |
15 | 15 | ||
16 | function onError (err: Error, jobId: number, video: VideoInstance, callback: () => void) { | 16 | function onError (err: Error, jobId: number, video: VideoInstance, callback: (err: Error) => void) { |
17 | logger.error('Error when transcoding video file in job %d.', jobId, { error: err }) | 17 | logger.error('Error when transcoding video file in job %d.', jobId, { error: err }) |
18 | return callback() | 18 | return callback(null) |
19 | } | 19 | } |
20 | 20 | ||
21 | function onSuccess (data: any, jobId: number, video: VideoInstance, callback: (err: Error) => void) { | 21 | function onSuccess (data: any, jobId: number, video: VideoInstance, callback: (err: Error) => void) { |