Skip to content

Commit

Permalink
fix default
Browse files Browse the repository at this point in the history
  • Loading branch information
lusmoura committed Jul 29, 2024
1 parent ec169aa commit 163bf48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/backend/services/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from starlette.types import ASGIApp, Receive, Scope, Send

from backend.schemas.context import Context
from backend.schemas.user import DEFAULT_USER_ID
from backend.services.auth.utils import get_header_user_id, has_header_user_id


Expand Down Expand Up @@ -31,7 +32,7 @@ async def __call__(self, scope: Scope, receive: Receive, send: Send):
if has_header_user_id(request):
user_id = get_header_user_id(request)
else:
user_id = None
user_id = DEFAULT_USER_ID

context.with_user_id(user_id)

Expand Down

0 comments on commit 163bf48

Please sign in to comment.