From d2afe221f05874ab693e993a27f24bcd3d25be74 Mon Sep 17 00:00:00 2001 From: aj-rosado <109146700+aj-rosado@users.noreply.github.com> Date: Wed, 24 Jul 2024 16:15:58 +0100 Subject: [PATCH] populate the collection's external id when importing (#10114) --- libs/common/src/vault/models/domain/collection.ts | 2 +- libs/common/src/vault/services/collection.service.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/common/src/vault/models/domain/collection.ts b/libs/common/src/vault/models/domain/collection.ts index 89da8bef880..6a9e71f1109 100644 --- a/libs/common/src/vault/models/domain/collection.ts +++ b/libs/common/src/vault/models/domain/collection.ts @@ -31,7 +31,7 @@ export class Collection extends Domain { hidePasswords: null, manage: null, }, - ["id", "organizationId", "externalId", "readOnly", "hidePasswords", "manage"], + ["id", "organizationId", "readOnly", "hidePasswords", "manage"], ); } diff --git a/libs/common/src/vault/services/collection.service.ts b/libs/common/src/vault/services/collection.service.ts index 97b3257ab56..096edb77f99 100644 --- a/libs/common/src/vault/services/collection.service.ts +++ b/libs/common/src/vault/services/collection.service.ts @@ -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; }