mirror of
https://github.com/bitwarden/server.git
synced 2025-07-01 08:02:49 -05:00
change "uncancel" to reinstate. fix rename error.
This commit is contained in:
@ -167,9 +167,9 @@ namespace Bit.Api.Controllers
|
||||
await _organizationService.CancelSubscriptionAsync(orgIdGuid, true);
|
||||
}
|
||||
|
||||
[HttpPut("{id}/uncancel")]
|
||||
[HttpPost("{id}/uncancel")]
|
||||
public async Task PutActivate(string id)
|
||||
[HttpPut("{id}/reinstate")]
|
||||
[HttpPost("{id}/reinstate")]
|
||||
public async Task PutReinstate(string id)
|
||||
{
|
||||
var orgIdGuid = new Guid(id);
|
||||
if(!_currentContext.OrganizationOwner(orgIdGuid))
|
||||
@ -177,7 +177,7 @@ namespace Bit.Api.Controllers
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
await _organizationService.UncancelSubscriptionAsync(orgIdGuid);
|
||||
await _organizationService.ReinstateSubscriptionAsync(orgIdGuid);
|
||||
}
|
||||
|
||||
[HttpDelete("{id}")]
|
||||
|
Reference in New Issue
Block a user