Skip to content

Commit

Permalink
Fix GetTotalTeamPickCount throwing error
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden committed Jul 30, 2024
1 parent 1527cc8 commit a9d6e33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Refresh.GameServer/Database/GameDatabaseContext.Levels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public int GetTotalLevelsPublishedByUser(GameUser user, TokenGame game)
.Count(r => r.Publisher == user && r._GameVersion == (int)game);

[Pure]
public int GetTotalTeamPickCount(TokenGame game) => this.GameLevels.FilterByGameVersion(game).Count(l => l.TeamPicked);
public int GetTotalTeamPickCount(TokenGame game) => this.GameLevels.FilterByGameVersion(game).Count(l => l.DateTeamPicked != null);

[Pure]
public GameLevel? GetLevelByIdAndType(string slotType, int id)
Expand Down

0 comments on commit a9d6e33

Please sign in to comment.