mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
feat: add entities on layout
This commit is contained in:
@@ -42,7 +42,11 @@ class DomainRefreshController extends AbstractController
|
||||
$domain = $this->domainRepository->findOneBy(["ldhName" => $ldhName]);
|
||||
|
||||
// If the domain name exists in the database, recently updated and not important, we return the stored Domain
|
||||
if ($domain !== null && ($domain->getUpdatedAt()->diff(new DateTimeImmutable('now'))->days < 7) && !$this->RDAPService::isToBeWatchClosely($domain, $domain->getUpdatedAt())) return $domain;
|
||||
if ($domain !== null &&
|
||||
!$domain->getDeleted() &&
|
||||
($domain->getUpdatedAt()->diff(new DateTimeImmutable('now'))->days < 7) &&
|
||||
!$this->RDAPService::isToBeWatchClosely($domain, $domain->getUpdatedAt())
|
||||
) return $domain;
|
||||
|
||||
if (false === $kernel->isDebug()) {
|
||||
$limiter = $this->authenticatedApiLimiter->create($this->getUser()->getUserIdentifier());
|
||||
|
||||
Reference in New Issue
Block a user