custom asyncForEach() is gone

This commit is contained in:
Johannes Zellner
2020-06-03 23:17:06 +02:00
parent b524da23d5
commit 18ac61e8ab
8 changed files with 28 additions and 43 deletions

View File

@@ -1,8 +1,8 @@
'use strict';
/* global angular:false */
/* global $:false */
/* global asyncForEach */
/* global angular */
/* global $ */
/* global async */
angular.module('Application').controller('EmailController', ['$scope', '$location', '$timeout', '$routeParams', 'Client', function ($scope, $location, $timeout, $routeParams, Client) {
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastAdmin) $location.path('/'); });
@@ -414,7 +414,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.mailboxes.mailboxes = mailboxes;
asyncForEach(mailboxes, function (m, iteratorCallback) {
async.eachSeries(mailboxes, function (m, iteratorCallback) {
Client.getAliases(m.name, m.domain, function (error, aliases) {
if (error) return iteratorCallback(error);
@@ -700,7 +700,7 @@ angular.module('Application').controller('EmailController', ['$scope', '$locatio
$scope.adminDomain = result.filter(function (d) { return d.domain === $scope.config.adminDomain; })[0];
$scope.refreshDomain();
asyncForEach(result, function (domain, iteratorDone) {
async.eachSeries(result, function (domain, iteratorDone) {
Client.getMailConfigForDomain(domain.domain, function (error, mailConfig) {
if (error) return console.error('Failed to fetch mail config for domain', domain.domain, error);