generated from VLADIMIR/template
update
This commit is contained in:
@@ -299,6 +299,11 @@ func (s *GameService) AddTeamAction(ctx context.Context, teamId int, password st
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if team.ParticipationStatus == "pending" {
|
||||
if err := s.teamsRepo.ConfirmParticipationByFirstAction(ctx, teamId); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
game, err := s.gamesRepo.GetGameByID(ctx, team.GameId)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user