diff --git a/server/models/request.js b/server/models/request.js index 2d1c5af15..1a99dd2ea 100644 --- a/server/models/request.js +++ b/server/models/request.js @@ -185,14 +185,14 @@ function makeRequests () { if (success === true) { logger.debug('Removing requests for %s pod.', toPodId, { requestsIds: requestToMake.ids }) - // Remove the pod id of these request ids - removePodOf.call(self, requestToMake.ids, toPodId) goodPods.push(toPodId) + + // Remove the pod id of these request ids + removePodOf.call(self, requestToMake.ids, toPodId, callbackEach) } else { badPods.push(toPodId) + callbackEach() } - - callbackEach() }) }) }, function () {