From 290266c262220f62cbc9ab6c8b332f599f963eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Gonc=CC=A7alves?= Date: Wed, 29 May 2024 13:27:59 +0100 Subject: [PATCH] PM-2572 Fix pr comment --- src/Core/Services/CipherService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/CipherService.cs b/src/Core/Services/CipherService.cs index 13ec23209..0de29cc71 100644 --- a/src/Core/Services/CipherService.cs +++ b/src/Core/Services/CipherService.cs @@ -576,7 +576,7 @@ namespace Bit.Core.Services var attachmentTasks = new List(); Cipher cipher = null; //If the cipher doesn't have a key, we update it - if(await ShouldUseCipherKeyEncryptionAsync() && cipherView.Key == null) + if(cipherView.Key == null && await ShouldUseCipherKeyEncryptionAsync()) { await UpdateAndUpsertAsync(cipherView, cipher => _apiService.PutCipherAsync(cipherView.Id, new CipherRequest(cipher))); cipher = await GetAsync(cipherView.Id);