Skip reveal phase and freeze titles after suggestions

This commit is contained in:
2026-02-04 22:06:43 +01:00
parent 0f6a0fb35a
commit 90bcde6f36
8 changed files with 13 additions and 44 deletions

View File

@@ -187,8 +187,8 @@ public static class SuggestEndpoints
var player = await EndpointHelpers.GetAuthenticatedPlayer(ctx, db);
if (player is null) return Results.Unauthorized();
var phase = await EndpointHelpers.GetPhase(db, player.Id);
if (phase < Phase.Reveal)
return EndpointHelpers.PhaseMismatch(Phase.Reveal, phase);
if (phase < Phase.Vote)
return EndpointHelpers.PhaseMismatch(Phase.Vote, phase);
var all = await db.Suggestions.AsNoTracking()
.Include(s => s.Player)