Remove EF query warnings from test runs

This commit is contained in:
2026-02-07 13:46:46 +01:00
parent 86310804fa
commit 47fbec4512
10 changed files with 37 additions and 36 deletions

View File

@@ -9,7 +9,7 @@ internal sealed class ResultsWorkflowService(AppDbContext db)
{
public async Task<IResult> GetResultsAsync(Guid playerId)
{
var appState = await db.AppState.AsNoTracking().FirstAsync();
var appState = await db.AppState.AsNoTracking().SingleAsync();
if (!appState.ResultsOpen)
return EndpointHelpers.BadRequestError("Results are locked until the admin enables them.");