Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-bstein committed Jan 15, 2025
1 parent d75c517 commit d1a1cd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions src/Gameboard.Api/Features/Player/Services/PlayerService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,6 @@ await _store
);
}

public Func<Data.Player, bool> GetHasActiveSessionFunc(DateTimeOffset now)
{
return p => p.SessionBegin != DateTimeOffset.MinValue && p.SessionBegin < now && p.SessionEnd > now;
}

public Expression<Func<Data.Player, bool>> GetHasActiveSessionPredicate(DateTimeOffset now)
{
return p => p.SessionBegin != DateTimeOffset.MinValue && p.SessionBegin < now && p.SessionEnd > now;
}

public Expression<Func<Data.Player, bool>> GetHasPendingNamePredicate()
{
return p => p.Name != p.ApprovedName && p.Name != null && p.Name != string.Empty && (p.NameStatus == null || p.NameStatus == string.Empty || p.NameStatus == AppConstants.NameStatusPending);
Expand Down
1 change: 1 addition & 0 deletions src/Gameboard.Api/Features/Teams/Services/TeamService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ await _store
);

// and their challenges
// note that this doesn't matter for teams starting the first time, since they have no challenges
var challenges = await _store
.WithNoTracking<Data.Challenge>()
.Where(c => teamIds.Contains(c.TeamId))
Expand Down

0 comments on commit d1a1cd3

Please sign in to comment.