]> git.localhorst.tv Git - alttp.git/commitdiff
work around pusher limit
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 1 Dec 2025 17:19:32 +0000 (18:19 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 1 Dec 2025 17:19:32 +0000 (18:19 +0100)
app/Events/RoundChanged.php
resources/js/pages/Tournament.jsx

index 74ba0b15b4852d26c40fa3f51bc2540f5063ea4b..926e2e26b5656c2f6911f7732729f1a527fe127c 100644 (file)
@@ -24,9 +24,6 @@ class RoundChanged implements ShouldBroadcast
        {
                $this->round = $round;
                $this->round->setRelations([]);
-               if ($this->round->locked) {
-                       $round->load(['results', 'results.user']);
-               }
        }
 
        /**
index 1f0584c52808e0a6638e0677f4a9ae91d873de2f..3b65a147577929165f29194e3acba91e2a90125e 100644 (file)
@@ -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 => {