1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-11 14:04:03 +00:00

added constructor

This commit is contained in:
Jared McCannon
2026-01-21 10:56:22 -06:00
parent ed465101d2
commit 2e09104803
2 changed files with 5 additions and 3 deletions

View File

@@ -2,4 +2,8 @@ import { EncString } from "@bitwarden/sdk-internal";
export class OrganizationUserRestoreRequest {
defaultUserCollectionName: EncString | undefined;
constructor(defaultUserCollectionName?: EncString) {
this.defaultUserCollectionName = defaultUserCollectionName;
}
}

View File

@@ -88,9 +88,7 @@ export class DefaultOrganizationUserService implements OrganizationUserService {
buildRestoreUserRequest(organization: Organization): Observable<OrganizationUserRestoreRequest> {
return this.getEncryptedDefaultCollectionName$(organization).pipe(
map((collectionName) => ({
defaultUserCollectionName: collectionName.encryptedString,
})),
map((collectionName) => new OrganizationUserRestoreRequest(collectionName.encryptedString)),
);
}