fix migration test (#9163)

This commit is contained in:
rr-bw 2024-05-13 14:18:54 -07:00 committed by GitHub
parent 3900924250
commit 8e4073f1ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -387,9 +387,10 @@ export class PinService implements PinServiceAbstraction {
);
const encUserKey = await this.stateService.getEncryptedCryptoSymmetricKey({ userId: userId });
const userKey = await this.masterPasswordService.decryptUserKeyWithMasterKey(
masterKey,
new EncString(encUserKey),
encUserKey ? new EncString(encUserKey) : undefined,
);
const pinKeyEncryptedUserKey = await this.createPinKeyEncryptedUserKey(pin, userKey, userId);