aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/request')
-rw-r--r--server/models/request/request-video-event.ts2
-rw-r--r--server/models/request/request-video-qadu.ts2
-rw-r--r--server/models/request/request.ts4
3 files changed, 4 insertions, 4 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 () {
160function groupAndTruncateRequests (events: RequestVideoEventInstance[], limitRequestsPerPod: number) { 160function 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] = []
diff --git a/server/models/request/request-video-qadu.ts b/server/models/request/request-video-qadu.ts
index 74e28f129..9c97812b9 100644
--- a/server/models/request/request-video-qadu.ts
+++ b/server/models/request/request-video-qadu.ts
@@ -141,7 +141,7 @@ removeAll = function () {
141function groupAndTruncateRequests (requests: RequestVideoQaduInstance[], limitRequestsPerPod: number) { 141function groupAndTruncateRequests (requests: RequestVideoQaduInstance[], limitRequestsPerPod: number) {
142 const requestsGrouped = {} 142 const requestsGrouped = {}
143 143
144 requests.forEach(function (request) { 144 requests.forEach(request => {
145 const pod = request.Pod 145 const pod = request.Pod
146 146
147 if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = [] 147 if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = []
diff --git a/server/models/request/request.ts b/server/models/request/request.ts
index c3ce2cd4e..b4c0226fa 100644
--- a/server/models/request/request.ts
+++ b/server/models/request/request.ts
@@ -127,8 +127,8 @@ removeWithEmptyTo = function () {
127function groupAndTruncateRequests (requests: RequestInstance[], limitRequestsPerPod: number) { 127function groupAndTruncateRequests (requests: RequestInstance[], limitRequestsPerPod: number) {
128 const requestsGrouped: RequestsGrouped = {} 128 const requestsGrouped: RequestsGrouped = {}
129 129
130 requests.forEach(function (request) { 130 requests.forEach(request => {
131 request.Pods.forEach(function (pod) { 131 request.Pods.forEach(pod => {
132 if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = [] 132 if (!requestsGrouped[pod.id]) requestsGrouped[pod.id] = []
133 133
134 if (requestsGrouped[pod.id].length < limitRequestsPerPod) { 134 if (requestsGrouped[pod.id].length < limitRequestsPerPod) {