From bf0634089c45c00501a3e14796d74dbebe8b41cb Mon Sep 17 00:00:00 2001 From: Nik Gilmore Date: Fri, 12 Sep 2025 12:28:18 -0700 Subject: [PATCH] Fix formatting --- libs/common/src/vault/models/domain/cipher.ts | 1 - .../src/vault/services/cipher.service.ts | 26 +++++++++---------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/libs/common/src/vault/models/domain/cipher.ts b/libs/common/src/vault/models/domain/cipher.ts index 6c68e62a25c..5861ac78b05 100644 --- a/libs/common/src/vault/models/domain/cipher.ts +++ b/libs/common/src/vault/models/domain/cipher.ts @@ -29,7 +29,6 @@ import { Login } from "./login"; import { Password } from "./password"; import { SecureNote } from "./secure-note"; import { SshKey } from "./ssh-key"; -import { CipherEncryptionService } from "../../abstractions/cipher-encryption.service"; export class Cipher extends Domain implements Decryptable { readonly initializerKey = InitializerKey.Cipher; diff --git a/libs/common/src/vault/services/cipher.service.ts b/libs/common/src/vault/services/cipher.service.ts index c6a6a017f30..3f0ff6f45ef 100644 --- a/libs/common/src/vault/services/cipher.service.ts +++ b/libs/common/src/vault/services/cipher.service.ts @@ -1127,19 +1127,19 @@ export class CipherService implements CipherServiceAbstraction { async replace(ciphers: { [id: string]: CipherData }, userId: UserId): Promise { // use cipher from the sdk and convert to cipher data to store in the state // uncomment to test migration - const cipherObjects = Object.values(ciphers).map((cipherData) => new Cipher(cipherData)); - - const migratedCiphers = await this.cipherEncryptionService.migrateCiphers( - cipherObjects, - userId, - ); - - const resultCiphers: Record = migratedCiphers.reduce( - (acc, c) => ({ ...acc, [c.id as CipherId]: c.toCipherData() }), - {} as Record, - ); - - await this.updateEncryptedCipherState(() => resultCiphers, userId); + // const cipherObjects = Object.values(ciphers).map((cipherData) => new Cipher(cipherData)); + // + // const migratedCiphers = await this.cipherEncryptionService.migrateCiphers( + // cipherObjects, + // userId, + // ); + // + // const resultCiphers: Record = migratedCiphers.reduce( + // (acc, c) => ({ ...acc, [c.id as CipherId]: c.toCipherData() }), + // {} as Record, + // ); + // + // await this.updateEncryptedCipherState(() => resultCiphers, userId); } /**