mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-04 09:20:21 -05:00
(Fix) Announce Controller
This commit is contained in:
@@ -404,8 +404,8 @@ class AnnounceController extends Controller
|
||||
}
|
||||
}
|
||||
|
||||
$torrent->seeders = $torrent->peers->where('left', '=', '0')->count();
|
||||
$torrent->leechers = $torrent->peers->where('left', '>', '0')->count();
|
||||
$torrent->seeders = Peer::where('torrent_id', '=', $torrent->id)->where('left', '=', '0')->count();
|
||||
$torrent->leechers = Peer::where('torrent_id', '=', $torrent->id)->where('left', '>', '0')->count();
|
||||
$torrent->save();
|
||||
|
||||
$res = [];
|
||||
|
||||
Reference in New Issue
Block a user