From: Daniel Karbach Date: Mon, 1 Dec 2025 17:19:32 +0000 (+0100) Subject: work around pusher limit X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=e20140130b53675abf942e02e64ad4e0eb23f973;p=alttp.git work around pusher limit --- 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 => {