mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
fix: set max results to one
This commit is contained in:
parent
b8ead5d53f
commit
7f288c01e3
@ -26,6 +26,7 @@ class DomainStatusRepository extends ServiceEntityRepository
|
||||
->orderBy('ds.createdAt', 'DESC')
|
||||
->setParameter('domain', $domain)
|
||||
->setParameter('date', $updatedAt)
|
||||
->setMaxResults(1)
|
||||
->getQuery()
|
||||
->getOneOrNullResult();
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user