Skip to content

Commit

Permalink
shuffle shit around
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Feb 24, 2024
1 parent 1adefcd commit 6cad9cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Server/Api/ReplayController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,11 @@ public async Task<ActionResult> GetAllReplays()
public async Task<ActionResult> GetMostRecentReplay()
{
var replays = await _context.Replays
.OrderByDescending(r => r.Date ?? DateTime.MinValue)
.Take(32)
.ToListAsync();

// Order by most recent
replays = replays.OrderByDescending(r => r.Date ?? DateTime.MinValue).ToList();
return Ok(replays);
}

Expand Down

0 comments on commit 6cad9cc

Please sign in to comment.