Fix mail notificator initialization
This commit is contained in:
parent
08a94ac0b2
commit
b019d3aa2d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -44,7 +44,7 @@ func main() {
|
||||||
var mailNotificator *email.Notificator
|
var mailNotificator *email.Notificator
|
||||||
|
|
||||||
if cfg.Notifications.Email != nil {
|
if cfg.Notifications.Email != nil {
|
||||||
mailNotificator := email.NewNotificator(
|
mailNotificator = email.NewNotificator(
|
||||||
cfg.Notifications.Email.SMTP,
|
cfg.Notifications.Email.SMTP,
|
||||||
cfg.Notifications.Email.Login,
|
cfg.Notifications.Email.Login,
|
||||||
cfg.Notifications.Email.Password,
|
cfg.Notifications.Email.Password,
|
||||||
|
|
Loading…
Reference in a new issue