refactor: remove completed startup migrations

This commit is contained in:
tiennm99 committed 2026-07-01 11:42:59 +07:00
1 parent ad153d8e6c
commit 5254ab4c8e
10 files changed
+20 -801

No files matched your search

+1 -6
View File
@@ -29,7 +29,6 @@ import (
"github.com/tiennm99/miti99bot/internal/modules/wordle"
"github.com/tiennm99/miti99bot/internal/server"
"github.com/tiennm99/miti99bot/internal/storage"
"github.com/tiennm99/miti99bot/internal/systemstate"
"github.com/tiennm99/miti99bot/internal/telegram"
)
@@ -94,12 +93,8 @@ func main() {
log.Fatal("storage init failed", "err", err)
}
defer closeProvider()
systemColl := provider.Collection(systemstate.CollectionName)
if err := lol.InitStore(rootCtx, provider, systemColl); err != nil {
log.Fatal("lol storage init failed", "err", err)
}
if err := stats.InitStore(rootCtx, provider.Collection("stats"), systemColl); err != nil {
if err := stats.InitStore(rootCtx, provider.Collection("stats")); err != nil {
log.Fatal("stats storage init failed", "err", err)
}