This commit is contained in:
Martin Folkerts 2024-02-14 21:31:38 +01:00
parent 696d2214d3
commit 017cd175fe

View file

@ -22,7 +22,9 @@ public function __construct()
*/
public function handle(MessageSent $event): void
{
ProjectMailing::where('id', $event->data['mailing']['id'])
->update(['status' => 'success']);
if (array_key_exists('mailing' ,$event->data)) {
ProjectMailing::where('id', $event->data['mailing']['id'])
->update(['status' => 'success']);
}
}
}