mirror of
https://github.com/bitwarden/server
synced 2025-12-16 16:23:31 +00:00
added push events and moved cipher writing to cipher service.
This commit is contained in:
@@ -81,7 +81,7 @@ namespace Bit.Api.Controllers
|
||||
|
||||
cipher.Favorite = !cipher.Favorite;
|
||||
|
||||
await _cipherRepository.ReplaceAsync(cipher);
|
||||
await _cipherService.SaveAsync(cipher);
|
||||
}
|
||||
|
||||
[HttpDelete("{id}")]
|
||||
@@ -93,7 +93,7 @@ namespace Bit.Api.Controllers
|
||||
throw new NotFoundException();
|
||||
}
|
||||
|
||||
await _cipherRepository.DeleteAsync(cipher);
|
||||
await _cipherService.DeleteAsync(cipher);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user