This commit is contained in:
Andras Bacsai committed 2023-07-28 11:49:25 +02:00
1 parent 4a20abcbfa
commit 766fa85c4c
3 files changed
+40 -34

No files matched your search

-2
View File
@@ -26,10 +26,8 @@ class Team extends Model implements SendsDiscord, SendsEmail
public function getRecepients($notification)
{
$recipients = data_get($notification,'emails',null);
ray($recipients);
if (is_null($recipients)) {
$recipients = $this->members()->pluck('email')->toArray();
ray($recipients);
return $recipients;
}
return explode(',', $recipients);