From 75a1fee4e3b4f41ada4e5b18765c55a27798d26f Mon Sep 17 00:00:00 2001 From: CREDO23 Date: Fri, 29 May 2026 22:22:10 +0200 Subject: [PATCH] feat(event_bus): register session hooks at app startup --- surfsense_backend/app/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/surfsense_backend/app/app.py b/surfsense_backend/app/app.py index 223eb5a1b..9bd637ba6 100644 --- a/surfsense_backend/app/app.py +++ b/surfsense_backend/app/app.py @@ -43,6 +43,7 @@ from app.rate_limiter import get_real_client_ip, limiter from app.routes import router as crud_router from app.routes.auth_routes import router as auth_router from app.schemas import UserCreate, UserRead, UserUpdate +from app.session_events import register_session_hooks from app.users import SECRET, auth_backend, current_active_user, fastapi_users from app.utils.perf import log_system_snapshot @@ -588,6 +589,7 @@ async def lifespan(app: FastAPI): "first real request will pay the full compile cost." ) + register_session_hooks() log_system_snapshot("startup_complete") yield