fix(notifications): Notifiarr check for valid api key (#471)

fix(notifications): notifiarr check is enabled valid
This commit is contained in:
ze0s 2022-09-23 18:56:28 +02:00 committed by GitHub
parent 34d2449751
commit 8a782a5cab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,12 @@ func (s *notifiarrSender) CanSend(event domain.NotificationEvent) 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 false