Skip to content

Commit

Permalink
fix team sponsor on advancement
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Oct 12, 2022
1 parent 1fddda9 commit a07e161
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Gameboard.Api/Features/Player/PlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,15 @@ public async Task AdvanceTeams(TeamAdvancement model)
Role = player.Role,
Score = model.WithScores ? player.Score : 0
});

if (player.IsManager)
{
player.TeamSponsors = string.Join('|', team
.Select(p => p.Sponsor)
.Distinct()
.ToArray()
);
}
}
}

Expand Down

0 comments on commit a07e161

Please sign in to comment.