From: Daniel Karbach Date: Thu, 11 Sep 2025 19:35:43 +0000 (+0200) Subject: sync secondary SG match if available X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=1fc1f4e90c1ec95638aafd188a64e80e01620f2e;p=alttp.git sync secondary SG match if available --- diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index 2175d73..c2a02bd 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -182,6 +182,15 @@ class SyncSpeedGaming extends Command { $this->error('error syncing player '.$sgPlayer['id'].': '.$e->getMessage()); } } + if (isset($sgEntry['match2'])) { + foreach ($sgEntry['match2']['players'] as $sgPlayer) { + try { + $this->syncPlayer($episode, $sgPlayer); + } catch (\Exception $e) { + $this->error('error syncing player '.$sgPlayer['id'].': '.$e->getMessage()); + } + } + } } private function purgeChannels(Episode $episode, $sgEntry) {