Skip to content

Commit

Permalink
CB-4661 fix parallel loading of request for teams
Browse files Browse the repository at this point in the history
  • Loading branch information
sergeyteleshev committed Sep 18, 2024
1 parent 82c0637 commit 4493dc6
Showing 1 changed file with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,18 +109,14 @@ export class TeamOptionsTabService extends Bootstrap {

try {
if (create) {
const [team] = await Promise.all([
this.teamResource.createTeam(config),
this.teamsMetaParametersResource.setMetaParameters(config.teamId, metaParameters),
]);
const team = await this.teamResource.createTeam(config);
await this.teamsMetaParametersResource.setMetaParameters(config.teamId, metaParameters);

status.info('administration_teams_team_info_created');
status.info(team.teamId);
} else {
const [team] = await Promise.all([
this.teamResource.updateTeam(config),
this.teamsMetaParametersResource.setMetaParameters(config.teamId, metaParameters),
]);
const team = await this.teamResource.updateTeam(config);
await this.teamsMetaParametersResource.setMetaParameters(config.teamId, metaParameters);

status.info('administration_teams_team_info_updated');
status.info(team.teamId);
Expand Down

0 comments on commit 4493dc6

Please sign in to comment.