mirror of
https://github.com/bitwarden/server.git
synced 2025-07-05 01:52:49 -05:00
Remove FF 'AC-1607_present-user-offboarding-survey' and old cancel functionality (#3895)
This commit is contained in:
@ -464,8 +464,8 @@ public class OrganizationsController : Controller
|
||||
await _organizationService.VerifyBankAsync(orgIdGuid, model.Amount1.Value, model.Amount2.Value);
|
||||
}
|
||||
|
||||
[HttpPost("{id}/churn")]
|
||||
public async Task PostChurn(Guid id, [FromBody] SubscriptionCancellationRequestModel request)
|
||||
[HttpPost("{id}/cancel")]
|
||||
public async Task PostCancel(Guid id, [FromBody] SubscriptionCancellationRequestModel request)
|
||||
{
|
||||
if (!await _currentContext.EditSubscription(id))
|
||||
{
|
||||
@ -499,19 +499,6 @@ public class OrganizationsController : Controller
|
||||
});
|
||||
}
|
||||
|
||||
[HttpPost("{id}/cancel")]
|
||||
[SelfHosted(NotSelfHostedOnly = true)]
|
||||
public async Task PostCancel(string id)
|
||||
{
|
||||
var orgIdGuid = new Guid(id);
|
||||
if (!await _currentContext.EditSubscription(orgIdGuid))
|
||||
{
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
await _organizationService.CancelSubscriptionAsync(orgIdGuid);
|
||||
}
|
||||
|
||||
[HttpPost("{id}/reinstate")]
|
||||
[SelfHosted(NotSelfHostedOnly = true)]
|
||||
public async Task PostReinstate(string id)
|
||||
|
Reference in New Issue
Block a user