add database name envvar to GetDbUrl

This commit is contained in:
2026-02-09 04:52:44 -08:00
parent 8ba7ac55d6
commit a70dc4882b
2 changed files with 9 additions and 7 deletions

View File

@@ -22,10 +22,7 @@ func main() {
check("ensuring muzi DB exists", db.CreateDB())
var err error
db.Pool, err = pgxpool.New(
context.Background(),
fmt.Sprintf(db.GetDbUrl(), "/muzi"),
)
db.Pool, err = pgxpool.New(context.Background(), db.GetDbUrl(false))
check("connecting to muzi database", err)
defer db.Pool.Close()