mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: do not compare string and DomainEvent
This commit is contained in:
@@ -22,7 +22,7 @@ final readonly class SendNotifWatchListTriggerSchedule implements ScheduleProvid
|
|||||||
{
|
{
|
||||||
return (new Schedule())
|
return (new Schedule())
|
||||||
->add(
|
->add(
|
||||||
RecurringMessage::every('10 seconds', new ProcessWatchListsTrigger()),
|
RecurringMessage::every('1 week', new ProcessWatchListsTrigger()),
|
||||||
)
|
)
|
||||||
->stateful($this->cache);
|
->stateful($this->cache);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ readonly class RDAPService
|
|||||||
|
|
||||||
foreach ($rdapEntity['events'] as $rdapEntityEvent) {
|
foreach ($rdapEntity['events'] as $rdapEntityEvent) {
|
||||||
$eventAction = $rdapEntityEvent["eventAction"];
|
$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([
|
$event = $this->entityEventRepository->findOneBy([
|
||||||
"action" => EventAction::from($rdapEntityEvent["eventAction"]),
|
"action" => EventAction::from($rdapEntityEvent["eventAction"]),
|
||||||
"date" => new DateTimeImmutable($rdapEntityEvent["eventDate"])
|
"date" => new DateTimeImmutable($rdapEntityEvent["eventDate"])
|
||||||
|
|||||||
Reference in New Issue
Block a user