From df98563e2104b82b119c00a3cd83cd0dc1242d25 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Jun 2017 14:32:15 +0200 Subject: Use typescript standard and lint all files --- server/lib/friends.ts | 6 +++++- server/lib/jobs/handlers/video-transcoder.ts | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'server/lib') 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?: return createVideoQaduRequest(options, callback) } -function quickAndDirtyUpdatesVideoToFriends (qadusParams: QaduParam[], transaction: Sequelize.Transaction, finalCallback: (err: Error) => void) { +function quickAndDirtyUpdatesVideoToFriends ( + qadusParams: QaduParam[], + transaction: Sequelize.Transaction, + finalCallback: (err: Error) => void +) { const tasks = [] 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 }) } -function onError (err: Error, jobId: number, video: VideoInstance, callback: () => void) { +function onError (err: Error, jobId: number, video: VideoInstance, callback: (err: Error) => void) { logger.error('Error when transcoding video file in job %d.', jobId, { error: err }) - return callback() + return callback(null) } function onSuccess (data: any, jobId: number, video: VideoInstance, callback: (err: Error) => void) { -- cgit v1.2.3