fix: use current updatedAt date when update domain statuses

This commit is contained in:
Maël Gangloff
2024-12-13 20:30:07 +01:00
parent 15fb312aa2
commit 3c137e40ee

View File

@@ -180,7 +180,7 @@ readonly class RDAPService
]);
}
$domain->setTld($tld)->setLdhName($idnDomain)->setDeleted(false);
$domain->setTld($tld)->setLdhName($idnDomain)->setDeleted(false)->updateTimestamps();
if (array_key_exists('status', $res)) {
$addedStatus = array_diff($res['status'], $domain->getStatus());
@@ -365,7 +365,6 @@ readonly class RDAPService
]);
}
$domain->updateTimestamps();
$this->em->persist($domain);
$this->em->flush();