fix(import): publish season spielplan json after import
All checks were successful
Code Analysis and Production Deploy / analyze (push) Successful in 2m47s
Code Analysis and Production Deploy / deploy-production (push) Has been skipped
Code Analysis and Production Deploy / deploy-test (push) Successful in 2m2s

This commit is contained in:
Torsten Schulz (local)
2026-05-20 18:12:32 +02:00
parent f883d45452
commit 459da00820
3 changed files with 53 additions and 0 deletions

View File

@@ -2,13 +2,17 @@
import { importSpielplan } from '../server/utils/spielplan-import.js'
import { importLeagueTables } from '../server/utils/spielklassen-tables-import.js'
import { publishImportedSpielplan } from '../server/utils/spielplan-publish.js'
const result = await importSpielplan()
const published = await publishImportedSpielplan({ inputPath: result.jsonFile })
const tables = await importLeagueTables()
console.log(`Spielplan gespeichert: ${result.jsonFile}`)
console.log(`Roh-HTML gespeichert: ${result.htmlFile}`)
console.log(`Spiele: ${result.matchCount}`)
console.log(`Zeitraum: ${result.source.season.dateStart} bis ${result.source.season.dateEnd}`)
console.log(`Spielplan publiziert: ${published.internalSeasonPath}`)
console.log(`Spielplan publiziert (public): ${published.publicSeasonPath}`)
console.log(`Tabellen gespeichert: ${tables.outputFile}`)
console.log(`Tabellen importiert: ${tables.importedCount}/${tables.teamCount} (Fehler: ${tables.errorCount})`)