mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 08:49:13 +00:00
fix(notifications): disable notification and events have no effect (#1754)
fix(notifications): disable notificatio nand events
This commit is contained in:
parent
009647fcd1
commit
ca2d956e02
13 changed files with 118 additions and 125 deletions
|
@ -27,7 +27,7 @@ type LunaSeaMessage struct {
|
|||
|
||||
type lunaSeaSender struct {
|
||||
log zerolog.Logger
|
||||
Settings domain.Notification
|
||||
Settings *domain.Notification
|
||||
builder MessageBuilderPlainText
|
||||
|
||||
httpClient *http.Client
|
||||
|
@ -43,7 +43,7 @@ func (s *lunaSeaSender) rewriteWebhookURL(url string) string {
|
|||
return lunaWebhook.ReplaceAllString(url, "/custom/")
|
||||
} // `custom` is not mentioned in their docs, so I thought this would be a good idea to add to avoid user errors
|
||||
|
||||
func NewLunaSeaSender(log zerolog.Logger, settings domain.Notification) domain.NotificationSender {
|
||||
func NewLunaSeaSender(log zerolog.Logger, settings *domain.Notification) domain.NotificationSender {
|
||||
return &lunaSeaSender{
|
||||
log: log.With().Str("sender", "lunasea").Logger(),
|
||||
Settings: settings,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue