From c2c978d84c4c789d9f7dbf64608f3f3331ddc462 Mon Sep 17 00:00:00 2001 From: thomasrosen Date: Sun, 20 Nov 2022 12:11:06 +0100 Subject: [PATCH] only return basic infos --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index db2d652..61f9c3d 100644 --- a/index.js +++ b/index.js @@ -194,7 +194,8 @@ function reshapeTeamData(teams) { teams = teams .map(team => { return { - ...team, + id: team.id, + name: team.name, parent_team_ids: team.parent_team_ids .filter(parent_team => teams.find(team => team.id === parent_team.id)) .map(parent_team => parent_team.id),