generated from VLADIMIR/template
fix
This commit is contained in:
@@ -104,7 +104,7 @@ func (s *TeamService) RegisterTeam(ctx context.Context, gameID int, deliveryID s
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
autoConfirm := time.Now().Before(game.StartAt.Add(-24*time.Hour)) == false
|
||||
autoConfirm := !time.Now().Before(game.StartAt.Add(-24 * time.Hour))
|
||||
id, err := s.teamsRepo.RegisterTeamWithParticipation(ctx, gameID, deliveryID, registration.Name, registration.Email, registration.ParticipantsCount, password, autoConfirm)
|
||||
if err != nil {
|
||||
if errors.Is(err, teams_repo.ErrRegistrationClosed) {
|
||||
|
||||
Reference in New Issue
Block a user