We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28467fc commit ee2399fCopy full SHA for ee2399f
src/Core/Vault/Services/Implementations/CipherService.cs
@@ -891,7 +891,14 @@ private async Task<DeleteAttachmentResponseData> DeleteAttachmentAsync(Cipher ci
891
892
// Update the revision date when an attachment is deleted
893
cipher.RevisionDate = DateTime.UtcNow;
894
- await _cipherRepository.ReplaceAsync(orgAdmin ? cipher : (CipherDetails)cipher);
+ if (orgAdmin)
895
+ {
896
+ await _cipherRepository.ReplaceAsync(cipher);
897
+ }
898
+ else
899
900
+ await _cipherRepository.ReplaceAsync((CipherDetails)cipher);
901
902
903
// push
904
await _pushService.PushSyncCipherUpdateAsync(cipher, null);
0 commit comments