Recalculate yesterday's and today's stats

This commit is contained in:
Pijus Kamandulis
2025-06-24 09:41:24 +03:00
parent b89a1a2a7e
commit 844f7fa08b
4 changed files with 57 additions and 0 deletions
+3
View File
@@ -31,6 +31,9 @@ func main() {
timeWindowHighSharesRecalcJob := jobs.NewRecalculateTimeWindowHighSharesJob(db)
go timeWindowHighSharesRecalcJob.Run()
currentDayStatsRecalcJob := jobs.NewRecalculateCurrentDayStatsJob(db)
go currentDayStatsRecalcJob.Run()
webServer := web.NewWebServer(db, config.Port)
if err := webServer.Start(); err != nil {
log.Fatalf("Failed to start web server: %v", err)