1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

remove unnecessary update partial cipher service

This commit is contained in:
Kyle Spearrin
2017-04-17 23:16:35 -04:00
parent f7aa6fadbf
commit 3459be8143
3 changed files with 2 additions and 21 deletions

View File

@ -136,7 +136,7 @@ namespace Bit.Api.Controllers
throw new NotFoundException();
}
await _cipherService.UpdatePartialAsync(new Guid(id), userId, cipher.FolderId, !cipher.Favorite);
await _cipherRepository.UpdatePartialAsync(new Guid(id), userId, cipher.FolderId, !cipher.Favorite);
}
[HttpPut("{id}/partial")]
@ -145,7 +145,7 @@ namespace Bit.Api.Controllers
{
var userId = _userService.GetProperUserId(User).Value;
var folderId = string.IsNullOrWhiteSpace(model.FolderId) ? null : (Guid?)new Guid(model.FolderId);
await _cipherService.UpdatePartialAsync(new Guid(id), userId, folderId, model.Favorite);
await _cipherRepository.UpdatePartialAsync(new Guid(id), userId, folderId, model.Favorite);
}
[HttpPut("{id}/share")]