fix: add a delay of an hour

This commit is contained in:
Maël Gangloff
2024-09-05 15:45:25 +02:00
parent 71173306d6
commit ff11cd8af3

View File

@@ -65,7 +65,12 @@ final readonly class UpdateDomainsFromWatchlistHandler
->filter(fn ($domain) => $domain->getUpdatedAt()
->diff(
new \DateTimeImmutable('now'))->days >= 7
|| $this->RDAPService::isToBeWatchClosely($domain)
|| (
$this->RDAPService::isToBeWatchClosely($domain)
&& $domain->getUpdatedAt()
->diff(
new \DateTimeImmutable('now'))->h >= 1
)
) as $domain
) {
$updatedAt = $domain->getUpdatedAt();