Skip to content

Commit

Permalink
webedit ops
Browse files Browse the repository at this point in the history
Reverse list on search
  • Loading branch information
Simyon264 authored Feb 22, 2024
1 parent 5ec7fc4 commit 9bd736f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Server/Api/ReplayController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ [FromQuery] string query
var replays = await _context.Replays
.Include(r => r.RoundEndPlayers)
.OrderByDescending(r => r.Date ?? DateTime.MinValue)
.ToListAsync();
.ToListAsync().Reverse();

Check failure on line 89 in Server/Api/ReplayController.cs

View workflow job for this annotation

GitHub Actions / deploy

'Task<List<Replay>>' does not contain a definition for 'Reverse' and no accessible extension method 'Reverse' accepting a first argument of type 'Task<List<Replay>>' could be found (are you missing a using directive or an assembly reference?)

Check failure on line 89 in Server/Api/ReplayController.cs

View workflow job for this annotation

GitHub Actions / deploy

'Task<List<Replay>>' does not contain a definition for 'Reverse' and no accessible extension method 'Reverse' accepting a first argument of type 'Task<List<Replay>>' could be found (are you missing a using directive or an assembly reference?)
var found = ReplayParser.SearchReplays(searchMode, query, replays);
return Ok(found);
}
Expand Down Expand Up @@ -128,4 +128,4 @@ public async Task<ActionResult> GetReplay(int id)

return Ok(replay);
}
}
}

0 comments on commit 9bd736f

Please sign in to comment.