velxio/backend/app/core
davidmonterocrespo24 1190cc1c35 fix(hooks): annotate get_current_user_id(request: Request)
Without the type annotation, FastAPI treats `request` as a Query
parameter and bubbles it up to every endpoint that uses
`Depends(get_current_user_id)`. Result: POST /api/compile/start
and POST /api/compile/ both returned 422
{"loc":["query","request"],"msg":"Field required"} on every call
the frontend made — compile was fully broken in production.

The frontend then caught the 422 axios error and surfaced
response.data as a CompileResult, which had no success/stdout/
stderr/error fields, so the editor's CompilationConsole rendered
only the fallback "✕ Compilation failed" line with no detail.

Annotating `request: Request` is the standard FastAPI pattern;
the framework injects the raw HTTPRequest and no longer treats
it as a query parameter.
2026-05-14 20:47:35 +02:00
..
__init__.py feat: implement user authentication and project management features 2026-03-06 10:14:50 -03:00
config.py feat(auth): welcome email on register + password reset via Odoo mail relay 2026-05-12 17:34:30 -03:00
hooks.py fix(hooks): annotate get_current_user_id(request: Request) 2026-05-14 20:47:35 +02:00