Skip to content

Commit 41fb8a2

Browse files
improve
1 parent 24e5b88 commit 41fb8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

services/web/server/src/simcore_service_webserver/projects/_projects_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188

189189

190190
async def conditionally_unsubscribe_from_project_logs(
191-
app: web.Application, project_id: ProjectID, user_id: UserID | None = None
191+
app: web.Application, project_id: ProjectID, user_id: UserID
192192
) -> None:
193193
"""
194194
Unsubscribes from project logs only if no active socket connections remain for the project.
@@ -202,7 +202,7 @@ async def conditionally_unsubscribe_from_project_logs(
202202
user_id: Optional user ID to use for the resource session (defaults to 0 if None)
203203
"""
204204
redis_resource_registry = get_registry(app)
205-
with managed_resource(user_id or 0, None, app) as user_session:
205+
with managed_resource(user_id, None, app) as user_session:
206206
all_user_sessions_with_project = await user_session.find_users_of_resource(
207207
app, key=PROJECT_ID_KEY, value=f"{project_id}"
208208
)

0 commit comments

Comments
 (0)