Skip to content

Commit

Permalink
Order by publish date for adventures category (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
Beyley authored Aug 1, 2024
2 parents 18402e1 + e009827 commit 9d5ec0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Refresh.GameServer/Database/GameDatabaseContext.Levels.cs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,8 @@ public DatabaseList<GameLevel> GetCoolLevels(int count, int skip, GameUser? user
public DatabaseList<GameLevel> GetAdventureLevels(int count, int skip, GameUser? user, LevelFilterSettings levelFilterSettings) =>
new(this.GetLevelsByGameVersion(levelFilterSettings.GameVersion)
.FilterByLevelFilterSettings(user, levelFilterSettings)
.Where(l => l.IsAdventure), skip, count);
.Where(l => l.IsAdventure)
.OrderByDescending(l => l.PublishDate), skip, count);

[Pure]
public DatabaseList<GameLevel> SearchForLevels(int count, int skip, GameUser? user, LevelFilterSettings levelFilterSettings, string query)
Expand Down

0 comments on commit 9d5ec0a

Please sign in to comment.