mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-08 04:00:14 -05:00
refactor: split tmdb into movie_id and tv_id
Step 2 in cleaner meta fetching code.
This commit is contained in:
@@ -60,6 +60,6 @@ class Network extends Model
|
||||
*/
|
||||
public function tvTorrents(): \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
||||
{
|
||||
return $this->belongsToMany(Torrent::class, 'network_tv', 'tv_id', 'network_id', 'id', 'tmdb')->whereRelation('category', 'tv_meta', '=', true);
|
||||
return $this->belongsToMany(Torrent::class, 'network_tv', 'tv_id', 'network_id', 'id', 'tv_id')->whereRelation('category', 'tv_meta', '=', true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user