1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-23 16:41:48 +01:00

populate the collection's external id when importing (#10114)

This commit is contained in:
aj-rosado 2024-07-24 16:15:58 +01:00 committed by GitHub
parent 037d3ae91a
commit d2afe221f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ export class Collection extends Domain {
hidePasswords: null,
manage: null,
},
["id", "organizationId", "externalId", "readOnly", "hidePasswords", "manage"],
["id", "organizationId", "readOnly", "hidePasswords", "manage"],
);
}

View File

@ -100,6 +100,7 @@ export class CollectionService implements CollectionServiceAbstraction {
collection.id = model.id;
collection.organizationId = model.organizationId;
collection.readOnly = model.readOnly;
collection.externalId = model.externalId;
collection.name = await this.cryptoService.encrypt(model.name, key);
return collection;
}