fix: do not compare string and DomainEvent

This commit is contained in:
Maël Gangloff
2024-07-23 00:36:38 +02:00
parent fa80d33a33
commit ac031ebf59
2 changed files with 2 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ final readonly class SendNotifWatchListTriggerSchedule implements ScheduleProvid
{
return (new Schedule())
->add(
RecurringMessage::every('10 seconds', new ProcessWatchListsTrigger()),
RecurringMessage::every('1 week', new ProcessWatchListsTrigger()),
)
->stateful($this->cache);
}

View File

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