fix: fetch relation result instead of relation.

We want the category database record, not the query builder instance.
This commit is contained in:
Roardom
2023-07-08 04:52:22 +00:00
parent b4da1366f4
commit 097c60db72
+1 -1
View File
@@ -222,7 +222,7 @@ class TorrentController extends Controller
Keyword::upsert($keywords->toArray(), ['torrent_id', 'name'], []);
}
$category = $torrent->category();
$category = $torrent->category;
// TMDB Meta
if ($torrent->tmdb != 0) {