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