main
Deploy Iddaai Backend / build-and-deploy (push) Failing after 2m6s

This commit is contained in:
2026-05-12 02:43:02 +03:00
parent f8599bdb9a
commit b6d64b59bf
35 changed files with 1400 additions and 630 deletions
+22
View File
@@ -60,6 +60,10 @@ interface LiveScorePayloadMatch {
score: {
home: number | null;
away: number | null;
ht?: {
home: number | null;
away: number | null;
} | null;
} | null;
}
@@ -278,6 +282,16 @@ export class DataFetcherTask {
const matchData = response.data.data;
const scoreHome = matchData.homeScore ?? null;
const scoreAway = matchData.awayScore ?? null;
const htScoreHome = this.asInt(
matchData.score?.ht?.home ??
matchData.htHomeScore ??
matchData.homeHtScore,
);
const htScoreAway = this.asInt(
matchData.score?.ht?.away ??
matchData.htAwayScore ??
matchData.awayHtScore,
);
const storedStatus = deriveStoredMatchStatus({
state: matchData.state,
status: matchData.status,
@@ -290,6 +304,8 @@ export class DataFetcherTask {
data: {
scoreHome,
scoreAway,
htScoreHome,
htScoreAway,
state: matchData.state || null,
substate: matchData.substate || null,
status: storedStatus,
@@ -1022,6 +1038,8 @@ export class DataFetcherTask {
// Safe score parsing
const sHome = this.asInt(match.homeScore ?? match.score?.home);
const sAway = this.asInt(match.awayScore ?? match.score?.away);
const sHtHome = this.asInt(match.score?.ht?.home);
const sHtAway = this.asInt(match.score?.ht?.away);
const storedStatus = deriveStoredMatchStatus({
state: match.state,
status: match.status,
@@ -1062,6 +1080,8 @@ export class DataFetcherTask {
status: storedStatus,
scoreHome: sHome,
scoreAway: sAway,
htScoreHome: sHtHome,
htScoreAway: sHtAway,
homeTeamId: homeTeamId,
awayTeamId: awayTeamId,
updatedAt: new Date(),
@@ -1078,6 +1098,8 @@ export class DataFetcherTask {
mstUtc: BigInt(match.mstUtc || Date.now()),
scoreHome: sHome,
scoreAway: sAway,
htScoreHome: sHtHome,
htScoreAway: sHtAway,
homeTeamId: homeTeamId,
awayTeamId: awayTeamId,
},