mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 19:05:07 -05: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