🐛(backend) fix lobby notification type error breaking participant alerts

Correct data type issue that was preventing lobby notifications from
being sent to other participants in the room.
This commit is contained in:
lebaudantoine
2025-07-18 11:35:34 +02:00
committed by aleb_the_flash
parent 223c744e3f
commit 8a417806e4
2 changed files with 2 additions and 2 deletions

View File

@@ -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,
},

View File

@@ -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"}
)