diff options
author | =Corey Hulen <corey@hulen.com> | 2017-01-03 12:04:27 -0500 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2017-01-03 12:04:27 -0500 |
commit | e74c66d7f6a1f515d2380d0f163b2958f03c2bc7 (patch) | |
tree | fca04289881de4ef4a4157d8d753ada37f297bf6 | |
parent | f48c646208cb5227b8f6c6a5139bf9af66da802d (diff) | |
download | chat-e74c66d7f6a1f515d2380d0f163b2958f03c2bc7.tar.gz chat-e74c66d7f6a1f515d2380d0f163b2958f03c2bc7.tar.bz2 chat-e74c66d7f6a1f515d2380d0f163b2958f03c2bc7.zip |
Fixing max channel notifications default.
-rw-r--r-- | cmd/platform/server.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmd/platform/server.go b/cmd/platform/server.go index b699c4129..51078b6aa 100644 --- a/cmd/platform/server.go +++ b/cmd/platform/server.go @@ -24,6 +24,8 @@ import ( "github.com/spf13/cobra" ) +var MaxNotificationsPerChannelDefault int64 = 1000000 + var serverCmd = &cobra.Command{ Use: "server", Short: "Run the Mattermost server", @@ -76,6 +78,10 @@ func runServer(configFileLocation string) { utils.Cfg.SqlSettings.DataSourceReplicas = utils.Cfg.SqlSettings.DataSourceReplicas[:1] } + if !utils.IsLicensed { + utils.Cfg.TeamSettings.MaxNotificationsPerChannel = &MaxNotificationsPerChannelDefault + } + resetStatuses() api.StartServer() |