minor changes

This commit is contained in:
paulwer 2024-01-03 22:44:12 +01:00
parent 8660982c02
commit a8633d5d70

View File

@ -184,14 +184,16 @@ class ProcessBrevoWebhook implements ShouldQueue
return; return;
} }
(new SystemLogger( (
$data, new SystemLogger(
SystemLog::CATEGORY_MAIL, $data,
SystemLog::EVENT_MAIL_OPENED, SystemLog::CATEGORY_MAIL,
SystemLog::TYPE_WEBHOOK_RESPONSE, SystemLog::EVENT_MAIL_OPENED,
$this->invitation->contact->client, SystemLog::TYPE_WEBHOOK_RESPONSE,
$this->invitation->company $this->invitation->contact->client,
))->handle(); $this->invitation->company
)
)->handle();
} }
// { // {
@ -226,14 +228,16 @@ class ProcessBrevoWebhook implements ShouldQueue
return; return;
} }
(new SystemLogger( (
$data, new SystemLogger(
SystemLog::CATEGORY_MAIL, $data,
SystemLog::EVENT_MAIL_DELIVERY, SystemLog::CATEGORY_MAIL,
SystemLog::TYPE_WEBHOOK_RESPONSE, SystemLog::EVENT_MAIL_DELIVERY,
$this->invitation->contact->client, SystemLog::TYPE_WEBHOOK_RESPONSE,
$this->invitation->company $this->invitation->contact->client,
))->handle(); $this->invitation->company
)
)->handle();
} }
// { // {
@ -449,7 +453,7 @@ class ProcessBrevoWebhook implements ShouldQueue
'delivery_message' => $event->Details->DeliveryMessage ?? $event->Details->Summary ?? '', 'delivery_message' => $event->Details->DeliveryMessage ?? $event->Details->Summary ?? '',
'server' => $event->Details->DestinationServer ?? '', 'server' => $event->Details->DestinationServer ?? '',
'server_ip' => $event->Details->DestinationIP ?? '', 'server_ip' => $event->Details->DestinationIP ?? '',
'date' => \Carbon\Carbon::parse($event->ReceivedAt)->format('Y-m-d H:i:s') ?? '', 'date' => \Carbon\Carbon::parse($event->getTime())->format('Y-m-d H:i:s') ?? '',
]; ];
})->toArray(); })->toArray();