diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:04:57 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-07-11 17:05:55 +0200 |
commit | 075f16caac5236cb04c98ae7b3a989766d764bb3 (patch) | |
tree | 9a30024aa771735a28d83d9a166033b82dbcaf60 /server/models/request/request-video-event.ts | |
parent | 4e979c3e1b81f4762025d9db3052b1f70774b3bb (diff) | |
download | PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.gz PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.tar.zst PeerTube-075f16caac5236cb04c98ae7b3a989766d764bb3.zip |
Remove "function" in favor of () => {}
Diffstat (limited to 'server/models/request/request-video-event.ts')
-rw-r--r-- | server/models/request/request-video-event.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/request/request-video-event.ts b/server/models/request/request-video-event.ts index 90ea15702..4862a5745 100644 --- a/server/models/request/request-video-event.ts +++ b/server/models/request/request-video-event.ts | |||
@@ -160,7 +160,7 @@ removeAll = function () { | |||
160 | function groupAndTruncateRequests (events: RequestVideoEventInstance[], limitRequestsPerPod: number) { | 160 | function groupAndTruncateRequests (events: RequestVideoEventInstance[], limitRequestsPerPod: number) { |
161 | const eventsGrouped: RequestsVideoEventGrouped = {} | 161 | const eventsGrouped: RequestsVideoEventGrouped = {} |
162 | 162 | ||
163 | events.forEach(function (event) { | 163 | events.forEach(event => { |
164 | const pod = event.Video.Author.Pod | 164 | const pod = event.Video.Author.Pod |
165 | 165 | ||
166 | if (!eventsGrouped[pod.id]) eventsGrouped[pod.id] = [] | 166 | if (!eventsGrouped[pod.id]) eventsGrouped[pod.id] = [] |