mirror of
https://github.com/bitwarden/browser
synced 2026-02-11 14:04:03 +00:00
added constructor
This commit is contained in:
@@ -2,4 +2,8 @@ import { EncString } from "@bitwarden/sdk-internal";
|
||||
|
||||
export class OrganizationUserRestoreRequest {
|
||||
defaultUserCollectionName: EncString | undefined;
|
||||
|
||||
constructor(defaultUserCollectionName?: EncString) {
|
||||
this.defaultUserCollectionName = defaultUserCollectionName;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user