Fix mail notificator initialization

This commit is contained in:
Alex Vanin 2022-06-16 10:19:56 +03:00
parent 08a94ac0b2
commit b019d3aa2d

View file

@ -44,7 +44,7 @@ func main() {
var mailNotificator *email.Notificator
if cfg.Notifications.Email != nil {
mailNotificator := email.NewNotificator(
mailNotificator = email.NewNotificator(
cfg.Notifications.Email.SMTP,
cfg.Notifications.Email.Login,
cfg.Notifications.Email.Password,