mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
Include revision date in cipher requests (#203)
This is in conjunction with API changes that validates the last known revision date provided here with the actual last revision date on the server to block potential data loss due to client desyncs. Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
This commit is contained in:
@@ -143,6 +143,7 @@ export class CipherService implements CipherServiceAbstraction {
|
||||
cipher.organizationId = model.organizationId;
|
||||
cipher.type = model.type;
|
||||
cipher.collectionIds = model.collectionIds;
|
||||
cipher.revisionDate = model.revisionDate;
|
||||
|
||||
if (key == null && cipher.organizationId != null) {
|
||||
key = await this.cryptoService.getOrgKey(cipher.organizationId);
|
||||
|
||||
Reference in New Issue
Block a user