mirror of
https://github.com/coollabsio/coolify.git
synced 2026-03-11 08:55:47 +00:00
fix
This commit is contained in:
parent
5c797667bb
commit
43583d7777
1 changed files with 2 additions and 4 deletions
|
|
@ -25,13 +25,11 @@ class TestNotification extends Notification implements ShouldQueue
|
|||
$isDiscord = $this->type === 'discord' || is_null($this->type);
|
||||
$isEmailEnabled = data_get($notifiable, 'smtp.enabled');
|
||||
$isDiscordEnabled = data_get($notifiable, 'discord.enabled');
|
||||
$isSubscribedToEmailTests = data_get($notifiable, 'smtp_notifications.test');
|
||||
$isSubscribedToDiscordTests = data_get($notifiable, 'discord_notifications.test');
|
||||
|
||||
if ($isEmailEnabled && $isSubscribedToEmailTests && $isSmtp) {
|
||||
if ($isEmailEnabled && $isSmtp) {
|
||||
$channels[] = EmailChannel::class;
|
||||
}
|
||||
if ($isDiscordEnabled && $isSubscribedToDiscordTests && $isDiscord) {
|
||||
if ($isDiscordEnabled && $isDiscord) {
|
||||
$channels[] = DiscordChannel::class;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue