From ac031ebf599015e3f74d8408a27a67d0385fd3fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABl=20Gangloff?= Date: Tue, 23 Jul 2024 00:36:38 +0200 Subject: [PATCH] fix: do not compare string and DomainEvent --- src/Scheduler/SendNotifWatchListTriggerSchedule.php | 2 +- src/Service/RDAPService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Scheduler/SendNotifWatchListTriggerSchedule.php b/src/Scheduler/SendNotifWatchListTriggerSchedule.php index dddcb7f..9ad8bd8 100644 --- a/src/Scheduler/SendNotifWatchListTriggerSchedule.php +++ b/src/Scheduler/SendNotifWatchListTriggerSchedule.php @@ -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); } diff --git a/src/Service/RDAPService.php b/src/Service/RDAPService.php index 11abf73..6d99336 100644 --- a/src/Service/RDAPService.php +++ b/src/Service/RDAPService.php @@ -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"])