Broaden admin vote list to include suggestors
This commit is contained in:
@@ -41,7 +41,7 @@ public static class AdminEndpoints
|
|||||||
|
|
||||||
var voters = await db.Players
|
var voters = await db.Players
|
||||||
.AsNoTracking()
|
.AsNoTracking()
|
||||||
.Where(p => p.CurrentPhase == Phase.Vote)
|
.Where(p => p.CurrentPhase == Phase.Vote || p.Suggestions.Any())
|
||||||
.OrderBy(p => p.DisplayName ?? p.Username)
|
.OrderBy(p => p.DisplayName ?? p.Username)
|
||||||
.Select(p => new VoteStatusDto(p.Id, p.DisplayName ?? p.Username, p.VotesFinal))
|
.Select(p => new VoteStatusDto(p.Id, p.DisplayName ?? p.Username, p.VotesFinal))
|
||||||
.ToListAsync();
|
.ToListAsync();
|
||||||
|
|||||||
Reference in New Issue
Block a user