make bug report database name configurable

Replace the hardcoded "emly_bugreports_dev" database name in SQL queries with the database name from the application configuration.
This commit is contained in:
Flavio Fois
2026-03-26 20:28:51 +01:00
parent 09a760e025
commit e6d663f4f2
5 changed files with 50 additions and 50 deletions

View File

@@ -33,7 +33,7 @@ func NewRouter(db *sqlx.DB) http.Handler {
r.Route("/api", func(r chi.Router) {
registerAdmin(r, db)
registerBugReports(r, db)
registerBugReports(r, db, config.Load().Database)
})
return r