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