Skip to content

Commit

Permalink
chore: Add team slug and name to GetByEmail request (#133)
Browse files Browse the repository at this point in the history
See comment here for context -
theopensystemslab/planx-new#2224 (comment)
  • Loading branch information
DafyddLlyr authored Sep 20, 2023
1 parent 0520ea3 commit 2915dde
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/requests/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,12 @@ async function getByEmail(
email
isPlatformAdmin: is_platform_admin
teams {
teamId: team_id
role
team {
name
slug
id
}
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion src/types/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export interface User {
}

export interface UserTeams {
teamId: number;
role: TeamRole;
team: {
name: string;
slug: string;
id: number;
};
}

0 comments on commit 2915dde

Please sign in to comment.