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 -4
View File
@@ -1,8 +1,8 @@
'use strict';
/* global asyncForEach:false */
/* global angular:false */
/* global $:false */
/* global async */
/* global angular */
/* global $ */
angular.module('Application').controller('ProfileController', ['$scope', '$location', 'Client', function ($scope, $location, Client) {
$scope.user = Client.getUserInfo();
@@ -511,7 +511,7 @@ angular.module('Application').controller('ProfileController', ['$scope', '$locat
revokeAllWebAndCliTokens: function () {
$scope.tokens.busy = true;
asyncForEach($scope.tokens.webadminTokens.concat($scope.tokens.cliTokens), function (token, callback) {
async.eachSeries($scope.tokens.webadminTokens.concat($scope.tokens.cliTokens), function (token, callback) {
// do not revoke token for this session, will do at the end with logout
if (token.accessToken === Client.getToken()) return callback();