Broaden admin vote list to include suggestors

This commit is contained in:
2026-02-05 00:45:07 +01:00
parent 189d640f01
commit 0e571498f3

View File

@@ -41,7 +41,7 @@ public static class AdminEndpoints
var voters = await db.Players
.AsNoTracking()
.Where(p => p.CurrentPhase == Phase.Vote)
.Where(p => p.CurrentPhase == Phase.Vote || p.Suggestions.Any())
.OrderBy(p => p.DisplayName ?? p.Username)
.Select(p => new VoteStatusDto(p.Id, p.DisplayName ?? p.Username, p.VotesFinal))
.ToListAsync();