Skip to content

Commit 003d5bb

Browse files
authored
Merge pull request #2 from devaslanphp/dev
Adapt email notification constructor parameters, delete database dump…
2 parents 6a480d2 + ad3885d commit 003d5bb

3 files changed

Lines changed: 2 additions & 892 deletions

File tree

app/Jobs/DispatchNotificationsJob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ private function sendNotification(string $title, string $body, $recipient, strin
177177
}
178178
// Via email
179179
if ($this->user->hasNotification($this->notification, false, true)) {
180-
$this->user->notify(new EmailNotification($title, $body, $recipient, $url));
180+
$this->user->notify(new EmailNotification($title, $body, $url));
181181
}
182182
}
183183
}

app/Notifications/EmailNotification.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,17 @@ class EmailNotification extends Notification
1212

1313
private string $title;
1414
private string $body;
15-
private $recipient;
1615
private string|null $url;
1716

1817
/**
1918
* Create a new notification instance.
2019
*
2120
* @return void
2221
*/
23-
public function __construct(string $title, string $body, $recipient, string|null $url)
22+
public function __construct(string $title, string $body, string|null $url)
2423
{
2524
$this->title = $title;
2625
$this->body = $body;
27-
$this->recipient = $recipient;
2826
$this->url = $url;
2927
}
3028

0 commit comments

Comments
 (0)