website refactor

This commit is contained in:
2026-01-21 00:53:29 +01:00
parent 4516427a19
commit 5f3712e5ab
10 changed files with 85 additions and 201 deletions

View File

@@ -101,6 +101,10 @@ export class SeedRacingData {
if (existingDrivers.length > 0 && !forceReseed) {
this.logger.info('[Bootstrap] Racing seed skipped (drivers already exist), ensuring scoring configs');
await this.ensureScoringConfigsForExistingData();
// Even when skipping full seed, ensure stats are computed and stored
this.logger.info('[Bootstrap] Computing and storing driver/team stats for existing data');
await this.computeAndStoreDriverStats();
await this.computeAndStoreTeamStats();
return;
}