aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/request/request.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/models/request/request.ts')
-rw-r--r--server/models/request/request.ts4
1 files changed, 2 insertions, 2 deletions
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) {