diff --git a/BTCPayServer/Controllers/GreenField/UsersController.cs b/BTCPayServer/Controllers/GreenField/UsersController.cs index 4eaf56c61..a15541940 100644 --- a/BTCPayServer/Controllers/GreenField/UsersController.cs +++ b/BTCPayServer/Controllers/GreenField/UsersController.cs @@ -81,7 +81,7 @@ namespace BTCPayServer.Controllers.GreenField [Authorize(Policy = Policies.CanDeleteUser, AuthenticationSchemes = AuthenticationSchemes.Greenfield)] [HttpDelete("~/api/v1/users/me")] - public async Task> DeleteCurrentUser() + public async Task DeleteCurrentUser() { // Don't want to allow the user to delete themselves if they are the only admin if (await IsUserTheOnlyOneAdmin()) { @@ -198,7 +198,7 @@ namespace BTCPayServer.Controllers.GreenField [HttpDelete("~/api/v1/users/{userId}")] [Authorize(Policy = Policies.CanModifyServerSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)] - public async Task> DeleteUser(string userId) + public async Task DeleteUser(string userId) { var user = await _userManager.FindByIdAsync(userId); if (user == null)