From 1fc1f4e90c1ec95638aafd188a64e80e01620f2e Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Thu, 11 Sep 2025 21:35:43 +0200 Subject: [PATCH] sync secondary SG match if available --- app/Console/Commands/SyncSpeedGaming.php | 9 +++++++++ 1 file changed, 9 insertions(+) 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) { -- 2.47.2