diff --git a/app/Models/Team.php b/app/Models/Team.php index 211ea8ade..0bdda9272 100644 --- a/app/Models/Team.php +++ b/app/Models/Team.php @@ -7,7 +7,6 @@ use App\Notifications\Channels\SendsEmail; use App\Notifications\Channels\SendsPushover; use App\Notifications\Channels\SendsSlack; -use App\Notifications\Channels\SendsWebhook; use App\Traits\HasNotificationSettings; use App\Traits\HasSafeStringAttribute; use Illuminate\Database\Eloquent\Casts\Attribute; @@ -37,7 +36,7 @@ ] )] -class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, SendsSlack, SendsWebhook +class Team extends Model implements SendsDiscord, SendsEmail, SendsPushover, SendsSlack { use HasFactory, HasNotificationSettings, HasSafeStringAttribute, Notifiable; @@ -167,11 +166,6 @@ public function routeNotificationForPushover() ]; } - public function routeNotificationForWebhook() - { - return data_get($this, 'webhook_url', null); - } - public function getRecipients(): array { $recipients = $this->members()->pluck('email')->toArray(); diff --git a/app/Notifications/Channels/SendsWebhook.php b/app/Notifications/Channels/SendsWebhook.php deleted file mode 100644 index 9301a4ff0..000000000 --- a/app/Notifications/Channels/SendsWebhook.php +++ /dev/null @@ -1,8 +0,0 @@ -webhookNotificationSettings;