set cleanup batch ttl

This commit is contained in:
xiaomlove
2023-07-25 00:57:03 +08:00
parent d393d83379
commit 68b391785b
4 changed files with 15 additions and 3 deletions
+3
View File
@@ -64,6 +64,9 @@ class UpdateTorrentSeedersEtc implements ShouldQueue
$torrentIdArr = explode(",", $this->idStr);
foreach ($torrentIdArr as $torrentId) {
if ($torrentId <= 0) {
continue;
}
$peerResult = NexusDB::table('peers')
->where('torrent', $torrentId)
->selectRaw("count(*) as count, seeder")