mirror of
https://github.com/tiennm99/tiennm99bot.git
synced 2026-10-11 03:13:46 +00:00
refactor: remove completed startup migrations
This commit is contained in:
1 parent
ad153d8e6c
commit
5254ab4c8e
10 files changed
+20
-801
No files matched your search
+1
-6
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user