mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
order actions by time descending
Some checks are pending
Docker Image CI / build (push) Waiting to run
Some checks are pending
Docker Image CI / build (push) Waiting to run
This commit is contained in:
@@ -41,6 +41,7 @@ public class ActionsController(ActionsContext context) : Controller
|
||||
.Where(a => filter.Start == null || a.PerformedAt >= filter.Start.Value.ToUniversalTime())
|
||||
.Where(a => filter.End == null || a.PerformedAt <= filter.End.Value.ToUniversalTime())
|
||||
.Where(a => filter.Action == null || a.Action == filter.Action)
|
||||
.OrderByDescending(a => a.PerformedAt)
|
||||
.ToListAsync(HttpContext.RequestAborted) is not { } actions)
|
||||
return TypedResults.InternalServerError();
|
||||
|
||||
|
Reference in New Issue
Block a user