Skip to content

Commit ef92407

Browse files
committed
fix
1 parent 9b149f0 commit ef92407

File tree

1 file changed

+3
-1
lines changed
  • services/web/server/src/simcore_service_webserver/long_running_tasks

1 file changed

+3
-1
lines changed

services/web/server/src/simcore_service_webserver/long_running_tasks/plugin.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ async def _test_task_context_decorator(
3030
) -> web.StreamResponse:
3131
"""this task context callback tries to get the user_id from the query if available"""
3232
req_ctx = AuthenticatedRequestContext.model_validate(request)
33-
request[LONG_RUNNING_TASKS_CONTEXT_REQKEY] = req_ctx.model_dump(mode="json")
33+
request[LONG_RUNNING_TASKS_CONTEXT_REQKEY] = req_ctx.model_dump(
34+
mode="json", by_alias=True
35+
)
3436
return await handler(request)
3537

3638
return _test_task_context_decorator

0 commit comments

Comments
 (0)