1
0
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:
Kyle Spearrin
2017-04-10 18:20:21 -04:00
parent fa565f46c6
commit ea6178594c
3 changed files with 11 additions and 11 deletions

View File

@ -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}")]