diff --git a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php index 61aee6db..b88233d2 100644 --- a/app/Handlers/Events/SendIncidentEmailNotificationHandler.php +++ b/app/Handlers/Events/SendIncidentEmailNotificationHandler.php @@ -73,7 +73,7 @@ class SendIncidentEmailNotificationHandler 'htmlContent' => $data->formattedMessage, 'textContent' => $data->message, 'token' => $subscriber->token, - 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]), + 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->verify_code]), 'appUrl' => env('APP_URL'), ]; diff --git a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php index 1f458622..8ff99b93 100644 --- a/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php +++ b/app/Handlers/Events/SendMaintenanceEmailNotificationHandler.php @@ -71,7 +71,7 @@ class SendMaintenanceEmailNotificationHandler 'htmlContent' => $data->formattedMessage, 'textContent' => $data->message, 'token' => $subscriber->token, - 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->token]), + 'unsubscribeLink' => route('unsubscribe', ['code' => $subscriber->verify_code]), 'appUrl' => env('APP_URL'), ];