1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-04 01:22:50 -05:00

cancel sub completely if past exp date

This commit is contained in:
Kyle Spearrin
2018-12-31 13:34:02 -05:00
parent 5fa5634a50
commit 6d173385b0
6 changed files with 21 additions and 8 deletions

View File

@ -547,7 +547,7 @@ namespace Bit.Api.Controllers
throw new UnauthorizedAccessException();
}
await _userService.CancelPremiumAsync(user, true);
await _userService.CancelPremiumAsync(user);
}
[HttpPost("reinstate-premium")]

View File

@ -284,7 +284,7 @@ namespace Bit.Api.Controllers
throw new NotFoundException();
}
await _organizationService.CancelSubscriptionAsync(orgIdGuid, true);
await _organizationService.CancelSubscriptionAsync(orgIdGuid);
}
[HttpPost("{id}/reinstate")]