fix: general notifications does not go through email channel
This commit is contained in:
parent
6a7b283844
commit
c915bf9c0f
1 changed files with 4 additions and 0 deletions
|
|
@ -75,6 +75,10 @@ public function getEnabledChannels(string $event): array
|
|||
'slack' => SlackChannel::class,
|
||||
];
|
||||
|
||||
if ($event === 'general') {
|
||||
unset($channelMap['email']);
|
||||
}
|
||||
|
||||
foreach ($channelMap as $channel => $channelClass) {
|
||||
if ($this->isNotificationEnabled($channel) && $this->isNotificationTypeEnabled($channel, $event)) {
|
||||
$channels[] = $channelClass;
|
||||
|
|
|
|||
Loading…
Reference in a new issue