Apply to onMembershipChangedInTeam
Signed-off-by: Scott Guymer <scott.guymer@philips.com>
This commit is contained in:
+1
-17
@@ -2306,23 +2306,7 @@ describe('GithubMultiOrgEntityProvider', () => {
|
||||
organization: {
|
||||
teams: {
|
||||
pageInfo: { hasNextPage: false },
|
||||
nodes: [
|
||||
{
|
||||
slug: 'team',
|
||||
combinedSlug: 'orgA/team',
|
||||
name: 'TeamA',
|
||||
description: 'The one and only team',
|
||||
avatarUrl: 'http://example.com/team.jpeg',
|
||||
editTeamUrl: 'https://example.com',
|
||||
parentTeam: {
|
||||
slug: 'parent',
|
||||
},
|
||||
members: {
|
||||
pageInfo: { hasNextPage: false },
|
||||
nodes: [],
|
||||
},
|
||||
},
|
||||
],
|
||||
nodes: [],
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -801,15 +801,15 @@ export class GithubMultiOrgEntityProvider implements EntityProvider {
|
||||
headers: orgHeaders,
|
||||
});
|
||||
|
||||
const { teams } = await getOrganizationTeamsFromUsers(
|
||||
const { teams } = await getOrganizationTeamsForUser(
|
||||
orgClient,
|
||||
userOrg,
|
||||
[login],
|
||||
login,
|
||||
this.defaultMultiOrgTeamTransformer.bind(this),
|
||||
);
|
||||
|
||||
if (areGroupEntities(teams)) {
|
||||
assignGroupsToUsers([user], teams);
|
||||
assignGroupsToUser(user, teams);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user