Skip to content

Commit

Permalink
Fix GetTotalLevelsPublishedByUser returning global level count (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvyden authored Jun 18, 2024
2 parents 9e0ffcd + 5b3d3d8 commit a2b2eb2
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 @@ -370,7 +370,7 @@ public int GetTotalLevelsPublishedByUser(GameUser user)

public int GetTotalLevelsPublishedByUser(GameUser user, TokenGame game)
=> this._realm.All<GameLevel>()
.Count(r => r._GameVersion == (int)game);
.Count(r => r.Publisher == user && r._GameVersion == (int)game);

[Pure]
public int GetTotalTeamPickCount(TokenGame game) => this._realm.All<GameLevel>().FilterByGameVersion(game).Count(l => l.TeamPicked);
Expand Down

0 comments on commit a2b2eb2

Please sign in to comment.