mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
MM-21150: Re-create the workers so that the EE workers are non-nil up… (#13523)
* MM-21150: Re-create the workers so that the EE workers are non-nil upon uploading a license. * MM-21150: Updates from Srv field to method. Co-authored-by: mattermod <mattermod@users.noreply.github.com>
This commit is contained in:
@@ -98,6 +98,11 @@ func addLicense(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if *c.App.Config().JobSettings.RunJobs {
|
||||
c.App.Srv().Jobs.Workers = c.App.Srv().Jobs.InitWorkers()
|
||||
c.App.Srv().Jobs.StartWorkers()
|
||||
}
|
||||
|
||||
c.LogAudit("success")
|
||||
w.Write([]byte(license.ToJson()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user