From 6c8a886cbfcc9d0d785631788f1b289fc36e9e38 Mon Sep 17 00:00:00 2001 From: Nik Gilmore Date: Tue, 16 Dec 2025 16:57:35 -0800 Subject: [PATCH] Remove console.log statements --- libs/common/src/vault/services/cipher.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libs/common/src/vault/services/cipher.service.ts b/libs/common/src/vault/services/cipher.service.ts index 942d32176de..c3acf42a6aa 100644 --- a/libs/common/src/vault/services/cipher.service.ts +++ b/libs/common/src/vault/services/cipher.service.ts @@ -897,7 +897,6 @@ export class CipherService implements CipherServiceAbstraction { ); if (sdkCipherEncryptionEnabled) { - // return await this.createWithServer_sdk({ cipher, encryptedFor }, orgAdmin); return (await this.createWithServer_sdk(cipherView, userId, orgAdmin)) || new CipherView(); } else { const encrypted = await this.encrypt(cipherView, userId); @@ -963,15 +962,14 @@ export class CipherService implements CipherServiceAbstraction { userId: UserId, orgAdmin?: boolean, ): Promise { + // const sdkCipherEncryptionEnabled = false; const sdkCipherEncryptionEnabled = await this.configService.getFeatureFlag( FeatureFlag.SdkCipherOperations, ); if (sdkCipherEncryptionEnabled) { - console.log("USING THE SDK!"); return await this.updateWithServer_sdk(cipherView, userId, orgAdmin); } else { - console.log("NOT using the SDK!"); const encrypted = await this.encrypt(cipherView, userId); const updatedCipher = await this.updateWithServer_legacy(encrypted, orgAdmin); const updatedCipherView = this.decrypt(updatedCipher, userId); @@ -998,6 +996,7 @@ export class CipherService implements CipherServiceAbstraction { .vault() .ciphers() .admin() + // TODO: Need to take actual "origCipher" instead of passing the literal same object. .edit(sdkUpdateRequest, cipher.toSdkCipherView()); } else { result = await ref.value.vault().ciphers().edit(sdkUpdateRequest);