aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/api/handler_wrapper.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/api/handler_wrapper.go')
-rw-r--r--backend/api/handler_wrapper.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/api/handler_wrapper.go b/backend/api/handler_wrapper.go
index 8e3e8cd..7448d13 100644
--- a/backend/api/handler_wrapper.go
+++ b/backend/api/handler_wrapper.go
@@ -5,6 +5,8 @@ package api
import (
"context"
+ "github.com/jackc/pgx/v5/pgxpool"
+
"albatross-2026-backend/config"
"albatross-2026-backend/db"
)
@@ -15,10 +17,11 @@ type HandlerWrapper struct {
impl Handler
}
-func NewHandler(queries *db.Queries, hub GameHubInterface, conf *config.Config) *HandlerWrapper {
+func NewHandler(queries *db.Queries, pool *pgxpool.Pool, hub GameHubInterface, conf *config.Config) *HandlerWrapper {
return &HandlerWrapper{
impl: Handler{
q: queries,
+ pool: pool,
hub: hub,
conf: conf,
},