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
+4 -2
View File
@@ -1,6 +1,8 @@
'use strict';
/* global asyncForEach, angular, $ */
/* global async */
/* global angular */
/* global $ */
angular.module('Application').controller('NotificationsController', ['$scope', '$timeout', 'Client', function ($scope, $timeout, Client) {
@@ -80,7 +82,7 @@ angular.module('Application').controller('NotificationsController', ['$scope', '
clearAll: function () {
$scope.clearAllBusy = true;
asyncForEach($scope.notifications.notifications, function (notification, callback) {
async.eachSeries($scope.notifications.notifications, function (notification, callback) {
if (notification.acknowledged) return callback();
$scope.notifications.ack(notification, null /* no click event */, callback);
}, function (error) {