Chore: db path to config

This commit is contained in:
Grail Finder
2025-08-08 13:33:07 +03:00
parent 972d9cdbff
commit 3b7784e0a4
3 changed files with 4 additions and 2 deletions

3
bot.go
View File

@@ -551,8 +551,7 @@ func init() {
//
logLevel.Set(slog.LevelInfo)
logger = slog.New(slog.NewTextHandler(logfile, &slog.HandlerOptions{Level: logLevel}))
// TODO: rename and/or put in cfg
store = storage.NewProviderSQL("test.db", logger)
store = storage.NewProviderSQL(cfg.DBPATH, logger)
if store == nil {
os.Exit(1)
}