diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-08-11 09:39:54 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-08-11 12:11:35 -0400 |
commit | cb17851e2df46f4a76ef4eefda980df818b4b01d (patch) | |
tree | 9f0172c43604b3f6b33ed101d9b7c2b2fcf68dc4 /store | |
parent | 963ca037270cbdd1a5e3bbecaf65ee588c0db58f (diff) | |
download | chat-cb17851e2df46f4a76ef4eefda980df818b4b01d.tar.gz chat-cb17851e2df46f4a76ef4eefda980df818b4b01d.tar.bz2 chat-cb17851e2df46f4a76ef4eefda980df818b4b01d.zip |
fix channelIdWithCountAndUpdateAt naming to be proper camel case
Diffstat (limited to 'store')
-rw-r--r-- | store/sql_channel_store.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/store/sql_channel_store.go b/store/sql_channel_store.go index 7b2d9df24..b8bf8b5ac 100644 --- a/store/sql_channel_store.go +++ b/store/sql_channel_store.go @@ -281,7 +281,7 @@ func (s SqlChannelStore) GetMoreChannels(teamId string, userId string) StoreChan return storeChannel } -type channelIdWithCountandUpdateAt struct { +type channelIdWithCountAndUpdateAt struct { Id string TotalMsgCount int64 UpdateAt int64 @@ -293,7 +293,7 @@ func (s SqlChannelStore) GetChannelCounts(teamId string, userId string) StoreCha go func() { result := StoreResult{} - var data []channelIdWithCountandUpdateAt + var data []channelIdWithCountAndUpdateAt _, err := s.GetReplica().Select(&data, "SELECT Id, TotalMsgCount, UpdateAt FROM Channels WHERE Id IN (SELECT ChannelId FROM ChannelMembers WHERE UserId = :UserId) AND TeamId = :TeamId AND DeleteAt = 0 ORDER BY DisplayName", map[string]interface{}{"TeamId": teamId, "UserId": userId}) if err != nil { |