mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
implement torrent scrape queue
This commit is contained in:
parent
d2f7fff24e
commit
1b722812e8
7 changed files with 194 additions and 24 deletions
|
|
@ -30,4 +30,14 @@ class TorrentRepository extends ServiceEntityRepository
|
|||
->getOneOrNullResult()
|
||||
;
|
||||
}
|
||||
|
||||
public function getTorrentScrapeQueue(): ?Torrent
|
||||
{
|
||||
return $this->createQueryBuilder('t')
|
||||
->orderBy('t.scraped', 'ASC') // same to ts.added
|
||||
->setMaxResults(1)
|
||||
->getQuery()
|
||||
->getOneOrNullResult()
|
||||
;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue