update: queries

This commit is contained in:
HDVinnie
2020-05-26 13:22:18 -04:00
parent 5bc20e40c7
commit 3d3de56ccb
10 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ class RssController extends Controller
$description .= '%'.$keyword.'%';
}
$torrent = Torrent::with(['user', 'category']);
$torrent = Torrent::with(['user', 'category', 'type']);
if ($rss->object_torrent->search) {
$torrent->where(function ($query) use ($search) {
@@ -249,7 +249,7 @@ class RssController extends Controller
}
if ($rss->object_torrent->types && is_array($rss->object_torrent->types)) {
$torrent->whereIn('type', $types);
$torrent->whereIn('type_id', $types);
}
if ($rss->object_torrent->genres && is_array($rss->object_torrent->genres)) {