1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-15 15:53:27 +00:00

[PM-25426] Implement fromSdk() method in CipherRecordMapper (#16279)

* implemented fromSdk

* Removed error throw
This commit is contained in:
SmithThe4th
2025-09-05 13:02:50 -04:00
committed by GitHub
parent a6b7c7f75c
commit e7ac237511

View File

@@ -17,6 +17,7 @@ export class CipherRecordMapper implements SdkRecordMapper<CipherData, SdkCipher
}
fromSdk(value: SdkCipher): CipherData {
throw new Error("Cipher.fromSdk is not implemented yet");
const cipher = Cipher.fromSdkCipher(value);
return cipher!.toCipherData();
}
}