]> git.localhorst.tv Git - alttp.git/commitdiff
don't remove manual events
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 29 Jun 2025 15:38:20 +0000 (17:38 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Sun, 29 Jun 2025 15:38:20 +0000 (17:38 +0200)
app/Console/Commands/SyncSpeedGaming.php

index 1b4c80e9a3ea1c83153eb2a61f40e5ca0e11a800..6e673ad97dbd529f6eaec167fae7c0ab2ec39ee5 100644 (file)
@@ -85,7 +85,8 @@ class SyncSpeedGaming extends Command {
                $to_purge = $event->episodes()
                        ->where('start', '>=', $from)
                        ->where('start', '<=', $to)
-                       ->whereNotIn('ext_id', $ext_ids);
+                       ->whereNotIn('ext_id', $ext_ids)
+                       ->where('ext_id', 'LIKE', 'sg:%');
                foreach ($to_purge->get() as $episode) {
                        $episode->channels()->detach();
                        $episode->crew()->delete();