custom asyncSeries() is gone

This commit is contained in:
Johannes Zellner
2020-06-03 23:08:05 +02:00
parent 0410ba51ca
commit eeac846f5a
3 changed files with 8 additions and 24 deletions

View File

@@ -1,10 +1,10 @@
'use strict';
/* global angular:false */
/* global Clipboard:false */
/* global asyncForEachParallel:false */
/* global asyncSeries:false */
/* global $:false */
/* global angular */
/* global Clipboard */
/* global asyncForEachParallel */
/* global async */
/* global $ */
angular.module('Application').controller('UsersController', ['$scope', '$location', '$timeout', 'Client', function ($scope, $location, $timeout, Client) {
Client.onReady(function () { if (!Client.getUserInfo().isAtLeastUserManager) $location.path('/'); });
@@ -167,7 +167,7 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
var groupIds = $scope.useradd.selectedGroups.map(function (g) { return g.id; });
var NOOP = function (next) { next(); };
asyncSeries([
async.series([
Client.setGroups.bind(Client, newUserInfo.id, groupIds),
$scope.useradd.sendInvite ? Client.createInvite.bind(Client, newUserInfo.id) : NOOP,
$scope.useradd.sendInvite ? Client.sendInvite.bind(Client, newUserInfo.id) : NOOP