Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Commit

Permalink
Fix team
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanDalelR committed Aug 3, 2023
1 parent f750d7e commit c2f27cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pages/linear.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ export async function getServerSideProps(context) {
displayName: userJson.viewer.displayName,
name: userJson.viewer.name,
email: userJson.email,
team_id: userJson.teams.nodes.id,
team_name: userJson.teams.nodes.name,
team_id: userJson.teams.nodes[0].id,
team_name: userJson.teams.nodes[0].name,
});
return {
props: {
loggedIn: true,
userEmail: context.query.state,
login: userJson.viewer.displayName,
avatar_url: userJson.viewer.avatarUrl,
team_name: userJson.teams.nodes.name,
team_name: userJson.teams.nodes[0].name,
},
};
}
Expand Down

0 comments on commit c2f27cc

Please sign in to comment.