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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user