1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-08 11:33:28 +00:00

[AC-2276] Move policyService helper methods to domain object (#8254)

* Move mapPolicyFromResponse and mapPoliciesFromToken to static factory methods
This commit is contained in:
Thomas Rittson
2024-03-19 12:19:32 +10:00
committed by GitHub
parent a3f6b9eacb
commit b95dfd9d30
9 changed files with 17 additions and 100 deletions

View File

@@ -167,7 +167,7 @@ export class AcceptOrganizationComponent extends BaseAcceptComponent {
qParams.email,
qParams.organizationUserId,
);
policyList = this.policyService.mapPoliciesFromToken(policies);
policyList = Policy.fromListResponse(policies);
} catch (e) {
this.logService.error(e);
}