feat: remove lastChanged event

This commit is contained in:
Maël Gangloff
2024-07-15 11:52:51 +02:00
parent aa54d4c9ce
commit 16610205b6
2 changed files with 5 additions and 3 deletions

View File

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