@@ -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
|
||||
// ============================================
|
||||
|
||||
Reference in New Issue
Block a user