mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
chore: update every 15 minutes
This commit is contained in:
@@ -376,7 +376,7 @@ class Domain
|
|||||||
/**
|
/**
|
||||||
* Returns true if one or more of these conditions are met:
|
* Returns true if one or more of these conditions are met:
|
||||||
* - It has been more than 7 days since the domain name was last updated
|
* - It has been more than 7 days since the domain name was last updated
|
||||||
* - It has been more than 1 hour and the domain name has statuses that suggest it is not stable
|
* - It has been more than 12 minutes and the domain name has statuses that suggest it is not stable
|
||||||
* - It has been more than 1 day and the domain name is blocked in DNS
|
* - It has been more than 1 day and the domain name is blocked in DNS
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
@@ -389,7 +389,7 @@ class Domain
|
|||||||
: (
|
: (
|
||||||
($fromUser || ($this->getUpdatedAt()
|
($fromUser || ($this->getUpdatedAt()
|
||||||
->diff(new \DateTimeImmutable())->h * 60 + $this->getUpdatedAt()
|
->diff(new \DateTimeImmutable())->h * 60 + $this->getUpdatedAt()
|
||||||
->diff(new \DateTimeImmutable())->i) >= 50
|
->diff(new \DateTimeImmutable())->i) >= 12
|
||||||
)
|
)
|
||||||
&& $this->isToBeWatchClosely()
|
&& $this->isToBeWatchClosely()
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ final readonly class UpdateDomainsFromWatchlistHandler
|
|||||||
/*
|
/*
|
||||||
* A domain name is updated if one or more of these conditions are met:
|
* A domain name is updated if one or more of these conditions are met:
|
||||||
* - was updated more than 7 days ago
|
* - was updated more than 7 days ago
|
||||||
* - has statuses that suggest it will expire soon AND was updated more than an hour ago
|
* - has statuses that suggest it will expire soon AND was updated more than 15 minutes ago
|
||||||
* - has specific statuses that suggest there is a dispute between the registrant and the registrar AND was updated more than a day ago
|
* - has specific statuses that suggest there is a dispute between the registrant and the registrar AND was updated more than a day ago
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -83,7 +83,6 @@ final readonly class UpdateDomainsFromWatchlistHandler
|
|||||||
$this->RDAPService->registerDomain($domain->getLdhName());
|
$this->RDAPService->registerDomain($domain->getLdhName());
|
||||||
$this->bus->dispatch(new SendDomainEventNotif($watchList->getToken(), $domain->getLdhName(), $updatedAt));
|
$this->bus->dispatch(new SendDomainEventNotif($watchList->getToken(), $domain->getLdhName(), $updatedAt));
|
||||||
} catch (NotFoundHttpException) {
|
} catch (NotFoundHttpException) {
|
||||||
|
|
||||||
if (!$domain->getDeleted()) {
|
if (!$domain->getDeleted()) {
|
||||||
$notification = (new DomainDeletedNotification($this->sender, $domain));
|
$notification = (new DomainDeletedNotification($this->sender, $domain));
|
||||||
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
|
$this->mailer->send($notification->asEmailMessage(new Recipient($watchList->getUser()->getEmail()))->getMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user