[MM-40342] Fix panic in Mattermost Server for cloud installations (#19046)

* Add a small change to trigger spinwick update

* Change if statement to fix panic

* Undo changes

* simplify logic
Этот коммит содержится в:
Nick Misasi
2021-11-25 00:07:39 -05:00
коммит произвёл GitHub
родитель 5ab3ad9bfd
Коммит 8588f69850

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

@@ -109,7 +109,7 @@ func (rseworker *ResendInvitationEmailWorker) Execute(job *model.Job, elapsedTim
}
}
if (elapsedTimeSinceSchedule > firstDuration) && (systemValue.Value == "0") {
if (elapsedTimeSinceSchedule > firstDuration) && (systemValue == nil || systemValue.Value == "0") {
rseworker.ResendEmails(job, "48")
rseworker.setNumResendEmailSent(job, "1")
} else if elapsedTimeSinceSchedule > secondDuration {