diff options
author | Corey Hulen <corey@hulen.com> | 2016-09-09 11:46:36 -0700 |
---|---|---|
committer | enahum <nahumhbl@gmail.com> | 2016-09-09 15:46:36 -0300 |
commit | 193314e9fca5d23fbfae3c6ead7e5d23b1bea616 (patch) | |
tree | 8c7cf0aa4b9f471d86f6305aed1c57ea7792b6b2 /store/sql_channel_store.go | |
parent | 58cdb17fb9a4137bbbe304fb22b861f7c517c650 (diff) | |
download | chat-193314e9fca5d23fbfae3c6ead7e5d23b1bea616.tar.gz chat-193314e9fca5d23fbfae3c6ead7e5d23b1bea616.tar.bz2 chat-193314e9fca5d23fbfae3c6ead7e5d23b1bea616.zip |
Increasing channel limits (#4003)
* Increasing channel limits
* Fixing unit test
Diffstat (limited to 'store/sql_channel_store.go')
-rw-r--r-- | store/sql_channel_store.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index acf112f50..2400c34f3 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -155,7 +155,7 @@ func (s SqlChannelStore) saveChannelT(transaction *gorp.Transaction, channel *mo if count, err := transaction.SelectInt("SELECT COUNT(0) FROM Channels WHERE TeamId = :TeamId AND DeleteAt = 0 AND (Type = 'O' OR Type = 'P')", map[string]interface{}{"TeamId": channel.TeamId}); err != nil { result.Err = model.NewLocAppError("SqlChannelStore.Save", "store.sql_channel.save_channel.current_count.app_error", nil, "teamId="+channel.TeamId+", "+err.Error()) return result - } else if count > 1000 { + } else if count > 20000 { result.Err = model.NewLocAppError("SqlChannelStore.Save", "store.sql_channel.save_channel.limit.app_error", nil, "teamId="+channel.TeamId) return result } |