mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: do not update deletedAt if already deleted
This commit is contained in:
@@ -389,7 +389,9 @@ class RDAPService
|
||||
{
|
||||
$now = new \DateTimeImmutable();
|
||||
foreach ($domain->getDomainEntities()->getIterator() as $domainEntity) {
|
||||
$domainEntity->setDeletedAt($now);
|
||||
if (null !== $domainEntity->getDeletedAt()) {
|
||||
$domainEntity->setDeletedAt($now);
|
||||
}
|
||||
}
|
||||
|
||||
if (!isset($rdapData['entities']) || !is_array($rdapData['entities'])) {
|
||||
|
||||
Reference in New Issue
Block a user