mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-03 05:19:37 +00:00
fix: general notifications does not go through email channel
This commit is contained in:
1 parent
6a7b283844
commit
c915bf9c0f
1 file changed
+4
@@ -75,6 +75,10 @@ trait HasNotificationSettings
|
||||
'slack' => SlackChannel::class,
|
||||
];
|
||||
|
||||
if ($event === 'general') {
|
||||
unset($channelMap['email']);
|
||||
}
|
||||
|
||||
foreach ($channelMap as $channel => $channelClass) {
|
||||
if ($this->isNotificationEnabled($channel) && $this->isNotificationTypeEnabled($channel, $event)) {
|
||||
$channels[] = $channelClass;
|
||||
|
||||
Reference in new issue
Block a user