mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-18 12:33:06 +00:00
do not send discord message if there is not url
This commit is contained in:
@@ -14,6 +14,9 @@ class DiscordChannel
|
||||
{
|
||||
$message = $notification->toDiscord($notifiable);
|
||||
$webhookUrl = $notifiable->routeNotificationForDiscord();
|
||||
if (!$webhookUrl) {
|
||||
return;
|
||||
}
|
||||
dispatch(new SendMessageToDiscordJob($message, $webhookUrl));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user