custom asyncForEach() is gone
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user