fix(realtime): restore websocket phase event type
All checks were successful
CI / test-and-quality (push) Successful in 2m52s
CI / test-and-quality (pull_request) Successful in 2m53s

This commit is contained in:
2026-03-15 10:32:10 +00:00
parent 62174135b8
commit 5c9d29a3a7
2 changed files with 25 additions and 2 deletions

View File

@@ -58,4 +58,6 @@ class GameConsumer(AsyncJsonWebsocketConsumer):
async def phase_event(self, event):
"""Forward any phase_event broadcast to the WebSocket client."""
await self.send_json(event["payload"])
payload = dict(event.get("payload") or {})
payload["type"] = event["event_type"]
await self.send_json(payload)