mirror of
https://github.com/voltbonn/diversity.volt.link.git
synced 2024-09-28 12:53:06 +00:00
only return basic infos
This commit is contained in:
parent
a6fd5d0cbe
commit
c2c978d84c
3
index.js
3
index.js
|
@ -194,7 +194,8 @@ function reshapeTeamData(teams) {
|
||||||
teams = teams
|
teams = teams
|
||||||
.map(team => {
|
.map(team => {
|
||||||
return {
|
return {
|
||||||
...team,
|
id: team.id,
|
||||||
|
name: team.name,
|
||||||
parent_team_ids: team.parent_team_ids
|
parent_team_ids: team.parent_team_ids
|
||||||
.filter(parent_team => teams.find(team => team.id === parent_team.id))
|
.filter(parent_team => teams.find(team => team.id === parent_team.id))
|
||||||
.map(parent_team => parent_team.id),
|
.map(parent_team => parent_team.id),
|
||||||
|
|
Loading…
Reference in a new issue