mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: use current updatedAt date when update domain statuses
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user