gg
Deploy Iddaai Backend / build-and-deploy (push) Successful in 31s

This commit is contained in:
2026-05-13 16:56:14 +03:00
parent 2507678bc0
commit 2b87669f41
2 changed files with 60 additions and 2 deletions
+18
View File
@@ -256,6 +256,24 @@ export class FeederService {
this.logger.log("🎉 HISTORICAL SCAN COMPLETED");
}
// ============================================
// INTRADAY ARCHIVE: finished live matches → matches table
// ============================================
async archiveCompletedMatchesForDate(
dateStr: string,
sports: Sport[] = this.SPORTS,
): Promise<void> {
this.logger.log(
`📦 Archiving completed matches for ${dateStr} [${sports.join(", ")}]`,
);
for (const sport of sports) {
await this.processDate(dateStr, sport, [], {
onlyCompletedMatches: true,
refreshExistingMatches: false,
});
}
}
// ============================================
// PROCESS SINGLE DATE
// ============================================