order actions by time descending
Some checks are pending
Docker Image CI / build (push) Waiting to run

This commit is contained in:
2025-10-17 01:04:31 +02:00
parent f302085596
commit 2df9d93e92

View File

@@ -40,7 +40,8 @@ public class ActionsController(ActionsContext context) : Controller
if (await context.FilterActions(filter.MangaId, filter.ChapterId) if (await context.FilterActions(filter.MangaId, filter.ChapterId)
.Where(a => filter.Start == null || a.PerformedAt >= filter.Start.Value.ToUniversalTime()) .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.End == null || a.PerformedAt <= filter.End.Value.ToUniversalTime())
.Where(a => filter.Action == null || a.Action == filter.Action) .Where(a => filter.Action == null || a.Action == filter.Action)
.OrderByDescending(a => a.PerformedAt)
.ToListAsync(HttpContext.RequestAborted) is not { } actions) .ToListAsync(HttpContext.RequestAborted) is not { } actions)
return TypedResults.InternalServerError(); return TypedResults.InternalServerError();