Skip to content

Firefly III: a personal finances manager

Fix issue with invitee mail.

James Cole474680dbbf15
diff --git a/app/Listeners/Security/System/NotifiesAboutNewInvitation.php b/app/Listeners/Security/System/NotifiesAboutNewInvitation.php
index 807d81c46e..e6932d1e9e 100644
--- a/app/Listeners/Security/System/NotifiesAboutNewInvitation.php
+++ b/app/Listeners/Security/System/NotifiesAboutNewInvitation.php
@@ -62,7 +62,7 @@ class NotifiesAboutNewInvitation implements ShouldQueue
$url = route('invite', [$invitee->invite_code]);
try {
- Mail::to($email)->send(new InvitationMail($invitee, $admin, $url));
+ Mail::to($email)->send(new InvitationMail($email, $admin, $url));
} catch (Exception $e) {
Log::error($e->getMessage());
Log::error($e->getTraceAsString());