mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
do not send discord message if there is not url
This commit is contained in:
1 parent
c0805a285e
commit
01b40b26f5
1 file changed
+3
@@ -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