From: Daniel Karbach Date: Sun, 29 Jun 2025 15:38:20 +0000 (+0200) Subject: don't remove manual events X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=4784d39dc89c6bbe0273425980ed2c13bd8d1cd6;p=alttp.git don't remove manual events --- diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index 1b4c80e..6e673ad 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -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();