diff options
Diffstat (limited to 'server/lib/friends.ts')
-rw-r--r-- | server/lib/friends.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/friends.ts b/server/lib/friends.ts index cbdc60441..6ed0da013 100644 --- a/server/lib/friends.ts +++ b/server/lib/friends.ts | |||
@@ -111,7 +111,7 @@ function quickAndDirtyUpdateVideoToFriends (qaduParam: QaduParam, transaction?: | |||
111 | function quickAndDirtyUpdatesVideoToFriends (qadusParams: QaduParam[], transaction: Sequelize.Transaction) { | 111 | function quickAndDirtyUpdatesVideoToFriends (qadusParams: QaduParam[], transaction: Sequelize.Transaction) { |
112 | const tasks = [] | 112 | const tasks = [] |
113 | 113 | ||
114 | qadusParams.forEach(function (qaduParams) { | 114 | qadusParams.forEach(qaduParams => { |
115 | tasks.push(quickAndDirtyUpdateVideoToFriends(qaduParams, transaction)) | 115 | tasks.push(quickAndDirtyUpdateVideoToFriends(qaduParams, transaction)) |
116 | }) | 116 | }) |
117 | 117 | ||
@@ -130,7 +130,7 @@ function addEventToRemoteVideo (eventParam: EventParam, transaction?: Sequelize. | |||
130 | function addEventsToRemoteVideo (eventsParams: EventParam[], transaction: Sequelize.Transaction) { | 130 | function addEventsToRemoteVideo (eventsParams: EventParam[], transaction: Sequelize.Transaction) { |
131 | const tasks = [] | 131 | const tasks = [] |
132 | 132 | ||
133 | eventsParams.forEach(function (eventParams) { | 133 | eventsParams.forEach(eventParams => { |
134 | tasks.push(addEventToRemoteVideo(eventParams, transaction)) | 134 | tasks.push(addEventToRemoteVideo(eventParams, transaction)) |
135 | }) | 135 | }) |
136 | 136 | ||
@@ -307,7 +307,7 @@ function getForeignPodsList (host: string) { | |||
307 | return new Promise< ResultList<FormatedPod> >((res, rej) => { | 307 | return new Promise< ResultList<FormatedPod> >((res, rej) => { |
308 | const path = '/api/' + API_VERSION + '/pods' | 308 | const path = '/api/' + API_VERSION + '/pods' |
309 | 309 | ||
310 | request.get(REMOTE_SCHEME.HTTP + '://' + host + path, function (err, response, body) { | 310 | request.get(REMOTE_SCHEME.HTTP + '://' + host + path, (err, response, body) => { |
311 | if (err) return rej(err) | 311 | if (err) return rej(err) |
312 | 312 | ||
313 | try { | 313 | try { |