From 4784d39dc89c6bbe0273425980ed2c13bd8d1cd6 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Sun, 29 Jun 2025 17:38:20 +0200 Subject: [PATCH] don't remove manual events --- app/Console/Commands/SyncSpeedGaming.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.5