mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: disable domain status diff when domain creation
This commit is contained in:
@@ -191,13 +191,13 @@ readonly class RDAPService
|
|||||||
$this->em->persist($domain);
|
$this->em->persist($domain);
|
||||||
$this->em->flush();
|
$this->em->flush();
|
||||||
|
|
||||||
$domainStatus = (new DomainStatus())
|
if ($domain->getUpdatedAt() !== $domain->getCreatedAt()) {
|
||||||
->setDomain($domain)
|
$this->em->persist((new DomainStatus())
|
||||||
->setDate($domain->getUpdatedAt())
|
->setDomain($domain)
|
||||||
->setAddStatus($addedStatus)
|
->setDate($domain->getUpdatedAt())
|
||||||
->setDeleteStatus($deletedStatus);
|
->setAddStatus($addedStatus)
|
||||||
|
->setDeleteStatus($deletedStatus));
|
||||||
$this->em->persist($domainStatus);
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->logger->warning('The domain name {idnDomain} has no WHOIS status.', [
|
$this->logger->warning('The domain name {idnDomain} has no WHOIS status.', [
|
||||||
|
|||||||
Reference in New Issue
Block a user