[MM-42121] - Inactive Server Email Notification sends duplicate emails of every admin to original admin (#19668)

Automatic Merge
Этот коммит содержится в:
Allan Guwatudde
2022-03-08 19:14:20 +03:00
коммит произвёл GitHub
родитель c211aa3da1
Коммит 12308f3612

Просмотреть файл

@@ -112,6 +112,10 @@ func (s *Server) takeInactivityAction() {
}
for _, user := range users {
// See https://go.dev/doc/faq#closures_and_goroutines for why we make this assignment
user := user
if user.Email == "" {
mlog.Error("Invalid system admin email.", mlog.String("user_email", user.Email))
continue