From a3b73b09f4303622476b99c57d482508a1d58703 Mon Sep 17 00:00:00 2001 From: Nick Krantz Date: Fri, 11 Oct 2024 11:49:08 -0500 Subject: [PATCH] store the updated cipher in the DB when an attachment is altered --- src/Core/Vault/Services/Implementations/CipherService.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Core/Vault/Services/Implementations/CipherService.cs b/src/Core/Vault/Services/Implementations/CipherService.cs index f2cb69539..6fdb39529 100644 --- a/src/Core/Vault/Services/Implementations/CipherService.cs +++ b/src/Core/Vault/Services/Implementations/CipherService.cs @@ -213,6 +213,7 @@ public class CipherService : ICipherService // Update the revision date when an attachment is added cipher.RevisionDate = DateTime.UtcNow; + await _cipherRepository.ReplaceAsync((CipherDetails)cipher); await _pushService.PushSyncCipherUpdateAsync(cipher, null); @@ -265,6 +266,7 @@ public class CipherService : ICipherService // Update the revision date when an attachment is added cipher.RevisionDate = DateTime.UtcNow; + await _cipherRepository.ReplaceAsync((CipherDetails)cipher); // push await _pushService.PushSyncCipherUpdateAsync(cipher, null); @@ -1030,6 +1032,7 @@ public class CipherService : ICipherService // Update the revision date when an attachment is deleted cipher.RevisionDate = DateTime.UtcNow; + await _cipherRepository.ReplaceAsync((CipherDetails)cipher); // push await _pushService.PushSyncCipherUpdateAsync(cipher, null);