wip
This commit is contained in:
@@ -27,7 +27,7 @@ class Team extends Model implements SendsDiscord, SendsEmail
|
||||
|
||||
public function routeNotificationForDiscord()
|
||||
{
|
||||
return $this->extra_attributes->get('discord_webhook');
|
||||
return $this->extra_attributes->get('discord_webhook_url');
|
||||
}
|
||||
public function routeNotificationForEmail(string $attribute = 'smtp_recipients')
|
||||
{
|
||||
|
||||
@@ -34,6 +34,10 @@ class User extends Authenticatable implements SendsEmail
|
||||
$team = [
|
||||
'name' => $user->name . "'s Team",
|
||||
'personal_team' => true,
|
||||
'extra_attributes' => [
|
||||
'notifications_smtp_test' => true,
|
||||
'notifications_discord_test' => true,
|
||||
]
|
||||
];
|
||||
if ($user->id === 0) {
|
||||
$team['id'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user