mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +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 {
|
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