Finalize API envelopes and close validation drift tasks
This commit is contained in:
@@ -16,7 +16,7 @@ public static class ResultsEndpoints
|
||||
{
|
||||
var player = await EndpointHelpers.GetAuthenticatedPlayer(ctx, db);
|
||||
if (player is null)
|
||||
return Results.Unauthorized();
|
||||
return EndpointHelpers.UnauthorizedError();
|
||||
|
||||
return await service.GetResultsAsync(player);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user