+ Promise.all(promises).then(function(data) {
+ return $.ajax({
+ url: apiUrl('api/aggregate'),
+ type: 'PUT',
+ beforeSend: Utils.addAuthorizationStub,
+ data: loggingConfig,
+ success: function(data) {
+ resolve(data);
+ },
+ error: function(error) {
+ console.log("There was an error updating the logging config data",
+ error);
+ reject(error);
+ }
+ });
+ }).then(function(data){