diff --git a/src/Api/Controllers/DevicesController.cs b/src/Api/Controllers/DevicesController.cs index c0e2ee30e..b5acfec66 100644 --- a/src/Api/Controllers/DevicesController.cs +++ b/src/Api/Controllers/DevicesController.cs @@ -93,7 +93,7 @@ namespace Bit.Api.Controllers [HttpPut("identifier/{identifier}/token")] [HttpPost("identifier/{identifier}/token")] - public async Task PutToken(string identifier, [FromBody]DeviceTokenRequestModel model) + public async Task PutToken(string identifier, [FromBody]DeviceTokenRequestModel model) { var device = await _deviceRepository.GetByIdentifierAsync(identifier, new Guid(_userManager.GetUserId(User))); if(device == null) @@ -102,9 +102,6 @@ namespace Bit.Api.Controllers } await _deviceService.SaveAsync(model.ToDevice(device)); - - var response = new DeviceResponseModel(device); - return response; } [AllowAnonymous]