add init db data, fix bugs, refactor

This commit is contained in:
lbenedar
2026-04-07 18:47:35 +03:00
parent 178404639d
commit e5deb5d76d
11 changed files with 190 additions and 56 deletions

View File

@@ -142,6 +142,8 @@ func main() {
app.parseFlags()
app.foundryApp.SetLogger(app.slogger)
app.slogger.Info("", "dsn", app.cfg.db.dsn)
db, err := openDB(app.cfg)
if err != nil {
app.slogger.Error("Error when opening database connection", "err", err)