From 217cdf447a995fd8f2700b14ba790360ccaeabf6 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 23 Dec 2016 10:32:30 -0500 Subject: PLT-5073 Improve performance of /channels/view endpoint (#4881) * Improve performance of /channels/view endpoint * Fix store unit test --- store/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'store/store.go') diff --git a/store/store.go b/store/store.go index 8521713d5..2f5065b88 100644 --- a/store/store.go +++ b/store/store.go @@ -110,7 +110,7 @@ type ChannelStore interface { GetMemberCount(channelId string, allowFromCache bool) StoreChannel RemoveMember(channelId string, userId string) StoreChannel PermanentDeleteMembersByUser(userId string) StoreChannel - UpdateLastViewedAt(channelId string, userId string) StoreChannel + UpdateLastViewedAt(channelIds []string, userId string) StoreChannel SetLastViewedAt(channelId string, userId string, newLastViewedAt int64) StoreChannel IncrementMentionCount(channelId string, userId string) StoreChannel AnalyticsTypeCount(teamId string, channelType string) StoreChannel -- cgit v1.2.3-1-g7c22