From cb17851e2df46f4a76ef4eefda980df818b4b01d Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Tue, 11 Aug 2015 09:39:54 -0400 Subject: fix channelIdWithCountAndUpdateAt naming to be proper camel case --- store/sql_channel_store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'store') 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 { -- cgit v1.2.3-1-g7c22