fix: torrent seeder/leecher count

This commit is contained in:
Roardom
2023-08-04 18:46:47 +00:00
parent 1aee1785b9
commit 62f7bad6dc
+2
View File
@@ -304,12 +304,14 @@ class ProcessAnnounce implements ShouldQueue
->torrent
->peers
->where('left', '=', 0)
->where('active', '=', true)
->where('peer_id', '!=', $peerId)
->count();
$otherLeechers = $this
->torrent
->peers
->where('left', '>', 0)
->where('active', '=', true)
->where('peer_id', '!=', $peerId)
->count();