mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(notifications): Notifiarr check for valid api key (#471)
fix(notifications): notifiarr check is enabled valid
This commit is contained in:
parent
34d2449751
commit
8a782a5cab
1 changed files with 6 additions and 1 deletions
|
@ -115,7 +115,12 @@ func (s *notifiarrSender) CanSend(event domain.NotificationEvent) bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *notifiarrSender) isEnabled() bool {
|
func (s *notifiarrSender) isEnabled() bool {
|
||||||
if s.Settings.Enabled && s.Settings.Webhook != "" {
|
if s.Settings.Enabled {
|
||||||
|
if s.Settings.APIKey == "" {
|
||||||
|
s.log.Warn().Msg("notifiarr missing api key")
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue