aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handler_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/handler_test.go')
-rw-r--r--backend/admin/handler_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/admin/handler_test.go b/backend/admin/handler_test.go
index 9de9a0b..20f5775 100644
--- a/backend/admin/handler_test.go
+++ b/backend/admin/handler_test.go
@@ -14,9 +14,9 @@ import (
"github.com/jackc/pgx/v5/pgtype"
"github.com/labstack/echo/v4"
- "albatross-2026-backend/api"
"albatross-2026-backend/config"
"albatross-2026-backend/db"
+ "albatross-2026-backend/session"
)
// mockQuerier implements db.Querier for admin handler testing.
@@ -395,7 +395,7 @@ func newEchoContextWithForm(path string, params map[string]string, form url.Valu
// --- Admin middleware tests ---
func setUserInContext(c echo.Context, user *db.User) {
- ctx := api.SetUserInContext(c.Request().Context(), user)
+ ctx := session.SetUserInContext(c.Request().Context(), user)
c.SetRequest(c.Request().WithContext(ctx))
}