|
@@ -143,11 +143,11 @@ const getStraightFixtures = async () => {
|
|
|
}
|
|
}
|
|
|
GLOBAL_DATA.straightFixturesVersion = last;
|
|
GLOBAL_DATA.straightFixturesVersion = last;
|
|
|
const games = league?.map(league => {
|
|
const games = league?.map(league => {
|
|
|
- const { id: leagueId, events } = league;
|
|
|
|
|
|
|
+ const { id: leagueId, name: leagueName, events } = league;
|
|
|
return events?.map(event => {
|
|
return events?.map(event => {
|
|
|
const { starts } = event;
|
|
const { starts } = event;
|
|
|
const timestamp = new Date(starts).getTime();
|
|
const timestamp = new Date(starts).getTime();
|
|
|
- return { leagueId, ...event, timestamp };
|
|
|
|
|
|
|
+ return { leagueId, leagueName, ...event, timestamp };
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
.flat() ?? [];
|
|
.flat() ?? [];
|