mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-05-04 17:30:27 -05:00
update: working optimized announce
This commit is contained in:
@@ -80,6 +80,7 @@ class UserActive extends Component
|
||||
->join('torrents', 'peers.torrent_id', '=', 'torrents.id')
|
||||
->select(
|
||||
'peers.id',
|
||||
'peers.ip',
|
||||
'peers.port',
|
||||
'peers.agent',
|
||||
'peers.uploaded',
|
||||
@@ -96,7 +97,6 @@ class UserActive extends Component
|
||||
'torrents.leechers',
|
||||
'torrents.times_completed',
|
||||
)
|
||||
->selectRaw('INET6_NTOA(ip) as ip')
|
||||
->selectRaw('(1 - (peers.left / NULLIF(torrents.size, 0))) AS progress')
|
||||
->where('peers.user_id', '=', $this->user->id)
|
||||
->when(
|
||||
|
||||
Reference in New Issue
Block a user