]> git.localhorst.tv Git - alttp.git/commitdiff
call off episode when deleting through HTH
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 11 Jul 2025 14:55:02 +0000 (16:55 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 11 Jul 2025 14:55:02 +0000 (16:55 +0200)
app/Console/Commands/SyncHTH.php

index 0740d42761021be89c3f26de273dd708b767e090..875889de3cc3bf13a7eef4fb91d7a007c85a21fa 100644 (file)
@@ -111,6 +111,7 @@ class SyncHTH extends Command {
                $episode = Episode::firstWhere('ext_id', '=', $ext_id);
                if (!$hthEntry['start']) {
                        if ($episode) {
+                               $episode->callOff();
                                $episode->delete();
                        }
                        return;