[MM-42121] - Inactive Server Email Notification sends duplicate emails of every admin to original admin (#19668)
Automatic Merge
Этот коммит содержится в:
коммит произвёл
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
|
||||
|
||||
Ссылка в новой задаче
Block a user