From 8a417806e4efdae8aa84333126b1040b3fd3b905 Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 18 Jul 2025 11:35:34 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(backend)=20fix=20lobby=20notificat?= =?UTF-8?q?ion=20type=20error=20breaking=20participant=20alerts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correct data type issue that was preventing lobby notifications from being sent to other participants in the room. --- src/backend/core/services/lobby.py | 2 +- src/backend/core/tests/services/test_lobby.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/core/services/lobby.py b/src/backend/core/services/lobby.py index 4c51c67e..e3435199 100644 --- a/src/backend/core/services/lobby.py +++ b/src/backend/core/services/lobby.py @@ -212,7 +212,7 @@ class LobbyService: try: utils.notify_participants( - room_name=room_id, + room_name=str(room_id), notification_data={ "type": settings.LOBBY_NOTIFICATION_TYPE, }, diff --git a/src/backend/core/tests/services/test_lobby.py b/src/backend/core/tests/services/test_lobby.py index 8caf8026..fdb77fd6 100644 --- a/src/backend/core/tests/services/test_lobby.py +++ b/src/backend/core/tests/services/test_lobby.py @@ -442,7 +442,7 @@ def test_enter_success( timeout=settings.LOBBY_WAITING_TIMEOUT, ) mock_notify.assert_called_once_with( - room_name=room.id, notification_data={"type": "participantWaiting"} + room_name=str(room.id), notification_data={"type": "participantWaiting"} )