fix channelIdWithCountAndUpdateAt naming to be proper camel case

Этот коммит содержится в:
JoramWilander
2015-08-11 09:39:54 -04:00
родитель 963ca03727
Коммит cb17851e2d

Просмотреть файл

@@ -281,7 +281,7 @@ func (s SqlChannelStore) GetMoreChannels(teamId string, userId string) StoreChan
return storeChannel return storeChannel
} }
type channelIdWithCountandUpdateAt struct { type channelIdWithCountAndUpdateAt struct {
Id string Id string
TotalMsgCount int64 TotalMsgCount int64
UpdateAt int64 UpdateAt int64
@@ -293,7 +293,7 @@ func (s SqlChannelStore) GetChannelCounts(teamId string, userId string) StoreCha
go func() { go func() {
result := StoreResult{} 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}) _, 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 { if err != nil {