From e20140130b53675abf942e02e64ad4e0eb23f973 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 1 Dec 2025 18:19:32 +0100 Subject: [PATCH] work around pusher limit --- app/Events/RoundChanged.php | 3 --- resources/js/pages/Tournament.jsx | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/Events/RoundChanged.php b/app/Events/RoundChanged.php index 74ba0b1..926e2e2 100644 --- a/app/Events/RoundChanged.php +++ b/app/Events/RoundChanged.php @@ -24,9 +24,6 @@ class RoundChanged implements ShouldBroadcast { $this->round = $round; $this->round->setRelations([]); - if ($this->round->locked) { - $round->load(['results', 'results.user']); - } } /** diff --git a/resources/js/pages/Tournament.jsx b/resources/js/pages/Tournament.jsx index 1f0584c..3b65a14 100644 --- a/resources/js/pages/Tournament.jsx +++ b/resources/js/pages/Tournament.jsx @@ -107,6 +107,13 @@ export const Component = () => { .listen('RoundChanged', e => { if (e.round) { setTournament(tournament => patchRound(tournament, e.round)); + if (e.round.locked) { + axios + .get(`/api/tournaments/${tournament.id}`) + .then(response => { + setTournament(sortParticipants(response.data)); + }) + } } }) .listen('.RoundDeleted', e => { -- 2.47.3