X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FConsole%2FCommands%2FSyncSpeedGaming.php;h=ce8b10c4a7e4faf5fbacd86f58ca9b3d5016c9c2;hb=7d018a20dfb545cefb1f28627841d9995052c1f6;hp=6d0fa1faa777801f213af2f38abfb8c62ec33047;hpb=e7eb3495728ca9c2883d7cf07b363b48a95231fe;p=alttp.git diff --git a/app/Console/Commands/SyncSpeedGaming.php b/app/Console/Commands/SyncSpeedGaming.php index 6d0fa1f..ce8b10c 100644 --- a/app/Console/Commands/SyncSpeedGaming.php +++ b/app/Console/Commands/SyncSpeedGaming.php @@ -87,6 +87,8 @@ class SyncSpeedGaming extends Command { ->where('start', '<=', $to) ->whereNotIn('ext_id', $ext_ids); foreach ($to_purge->get() as $episode) { + $episode->channels()->detach(); + $episode->crew()->delete(); $episode->players()->delete(); } $to_purge->delete();