mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: domain setDeleted false
This commit is contained in:
@@ -560,6 +560,10 @@ class Domain
|
|||||||
#[Groups(['domain:item', 'domain:list'])]
|
#[Groups(['domain:item', 'domain:list'])]
|
||||||
public function getExpiresInDays(): ?int
|
public function getExpiresInDays(): ?int
|
||||||
{
|
{
|
||||||
|
if ($this->getDeleted()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
$now = new \DateTimeImmutable();
|
$now = new \DateTimeImmutable();
|
||||||
[$expiredAt, $deletedAt] = $this->getRelevantDates();
|
[$expiredAt, $deletedAt] = $this->getRelevantDates();
|
||||||
|
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ readonly class RDAPService
|
|||||||
$this->updateDomainEntities($domain, $rdapData);
|
$this->updateDomainEntities($domain, $rdapData);
|
||||||
$this->updateDomainNameservers($domain, $rdapData);
|
$this->updateDomainNameservers($domain, $rdapData);
|
||||||
|
|
||||||
$domain->updateTimestamps();
|
$domain->setDeleted(false)->updateTimestamps();
|
||||||
|
|
||||||
$this->em->persist($domain);
|
$this->em->persist($domain);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
|
|||||||
Reference in New Issue
Block a user