feat(api): add tld property in domain endpoint

This commit is contained in:
Maël Gangloff
2024-07-19 22:58:50 +02:00
parent e4334b2eb5
commit 737ad4605b
2 changed files with 5 additions and 2 deletions

View File

@@ -225,7 +225,8 @@ readonly class RDAPService
if (!array_key_exists('events', $rdapEntity)) return $entity;
foreach ($rdapEntity['events'] as $rdapEntityEvent) {
if ($rdapEntityEvent["eventAction"] === EventAction::LastChanged->value) continue;
$eventAction = $rdapEntityEvent["eventAction"];
if ($eventAction === EventAction::LastChanged->value || $eventAction === EventAction::LastUpdateOfRDAPDatabase) continue;
$event = $this->entityEventRepository->findOneBy([
"action" => EventAction::from($rdapEntityEvent["eventAction"]),
"date" => new DateTimeImmutable($rdapEntityEvent["eventDate"])