Load category and parent relations when querying db

This commit is contained in:
DariusIII
2019-03-14 11:41:26 +01:00
parent 932786654a
commit d0814ac4af
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -648,7 +648,7 @@ class ProcessReleases
$this->colorCli->header('Process Releases -> Create the NZB, delete collections/binaries/parts.');
}
$releasesQuery = Release::query()->with('category')->where('nzbstatus', '=', 0);
$releasesQuery = Release::query()->with('category.parent')->where('nzbstatus', '=', 0);
if (! empty($groupID)) {
$releasesQuery->where('releases.groups_id', $groupID);
}
+1
View File
@@ -1,4 +1,5 @@
2019-03-14 DariusIII
* Chg: Load category and parent relations when querying db
* Chg: Update fetchIMDBProperties function to use real id to fetch movie data
* Chg: Update imdbphp/imdbphp (v6.1.3 => v6.2.0)
* Chg: Update spatie/laravel-fractal (5.5.0 => 5.5.1)