fix: disable domain status diff when domain creation

This commit is contained in:
Maël Gangloff 2024-12-13 21:16:49 +01:00
parent 3c137e40ee
commit df3906aa08
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629

View File

@ -190,7 +190,7 @@ readonly class RDAPService
if (count($addedStatus) > 0 || count($deletedStatus) > 0) {
$this->em->persist($domain);
if ($domain->getUpdatedAt() !== $domain->getCreatedAt()) {
if ($domain->getUpdatedAt() == $domain->getCreatedAt()) {
$this->em->persist((new DomainStatus())
->setDomain($domain)
->setDate($domain->getUpdatedAt())