update: announce

This commit is contained in:
HDVinnie
2023-01-23 21:31:51 -05:00
parent ab7fab7485
commit 85ab302611
20 changed files with 33 additions and 56 deletions
@@ -25,7 +25,9 @@ class TorrentPeerController extends Controller
{
$torrent = Torrent::withAnyStatus()->findOrFail($id);
$peers = Peer::query()
->with(['user'])
->with('user')
->select(['torrent_id', 'user_id', 'uploaded', 'downloaded', 'left', 'port', 'agent', 'created_at', 'updated_at', 'seeder'])
->selectRaw('INET6_NTOA(ip) as ip')
->where('torrent_id', '=', $id)
->latest('seeder')
->get()