Loading modules/Platforms/Models/PlatformModel.php +3 −5 Original line number Diff line number Diff line Loading @@ -135,12 +135,10 @@ class PlatformModel extends Model { $this->clearCache($podcastId); $platforms = service('platforms'); $platformsData = $platforms->getPlatformsByType($platformType); // delete all platforms given the type to overwrite them with data $this->builder() ->whereIn('slug', array_keys($platformsData)) ->where('podcast_id', $podcastId) ->where('type', $platformType) ->delete(); if ($data === []) { Loading Loading
modules/Platforms/Models/PlatformModel.php +3 −5 Original line number Diff line number Diff line Loading @@ -135,12 +135,10 @@ class PlatformModel extends Model { $this->clearCache($podcastId); $platforms = service('platforms'); $platformsData = $platforms->getPlatformsByType($platformType); // delete all platforms given the type to overwrite them with data $this->builder() ->whereIn('slug', array_keys($platformsData)) ->where('podcast_id', $podcastId) ->where('type', $platformType) ->delete(); if ($data === []) { Loading