This commit is contained in:
@@ -623,6 +623,8 @@ export class MatchesService {
|
||||
score: {
|
||||
home: liveMatch.scoreHome,
|
||||
away: liveMatch.scoreAway,
|
||||
htHome: (liveMatch as any).htScoreHome ?? null,
|
||||
htAway: (liveMatch as any).htScoreAway ?? null,
|
||||
},
|
||||
date: new Date(Number(liveMatch.mstUtc)),
|
||||
// Fill missing relations with empty arrays
|
||||
@@ -802,7 +804,12 @@ export class MatchesService {
|
||||
teamStats: normalizedTeamStats,
|
||||
mstUtc: Number(match.mstUtc),
|
||||
date: match.date || new Date(Number(match.mstUtc)),
|
||||
score: match.score || { home: match.scoreHome, away: match.scoreAway },
|
||||
score: match.score || {
|
||||
home: match.scoreHome,
|
||||
away: match.scoreAway,
|
||||
htHome: match.htScoreHome ?? null,
|
||||
htAway: match.htScoreAway ?? null,
|
||||
},
|
||||
homeTeam: {
|
||||
...match.homeTeam,
|
||||
logo: match.homeTeamId
|
||||
|
||||
Reference in New Issue
Block a user