summaryrefslogtreecommitdiffstats
path: root/store/sqlstore/channel_store.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-03-09 08:06:31 -0500
committerGitHub <noreply@github.com>2018-03-09 08:06:31 -0500
commit8ad99b4b1fbc901a69886d9a12ac016d8396b32f (patch)
tree949411d7b557f8479aec69ba46fa5879b8d258e8 /store/sqlstore/channel_store.go
parent302dae5bb982aad14324a4df61a018557f3dd24e (diff)
downloadchat-8ad99b4b1fbc901a69886d9a12ac016d8396b32f.tar.gz
chat-8ad99b4b1fbc901a69886d9a12ac016d8396b32f.tar.bz2
chat-8ad99b4b1fbc901a69886d9a12ac016d8396b32f.zip
Remove query to update channel extra_update_at field on user activation/deactivation (#8415)
Diffstat (limited to 'store/sqlstore/channel_store.go')
-rw-r--r--store/sqlstore/channel_store.go13
1 files changed, 0 insertions, 13 deletions
diff --git a/store/sqlstore/channel_store.go b/store/sqlstore/channel_store.go
index c6d353959..e7a157192 100644
--- a/store/sqlstore/channel_store.go
+++ b/store/sqlstore/channel_store.go
@@ -1248,19 +1248,6 @@ func (s SqlChannelStore) AnalyticsDeletedTypeCount(teamId string, channelType st
})
}
-func (s SqlChannelStore) ExtraUpdateByUser(userId string, time int64) store.StoreChannel {
- return store.Do(func(result *store.StoreResult) {
- _, err := s.GetMaster().Exec(
- `UPDATE Channels SET ExtraUpdateAt = :Time
- WHERE Id IN (SELECT ChannelId FROM ChannelMembers WHERE UserId = :UserId);`,
- map[string]interface{}{"UserId": userId, "Time": time})
-
- if err != nil {
- result.Err = model.NewAppError("SqlChannelStore.extraUpdated", "store.sql_channel.extra_updated.app_error", nil, "user_id="+userId+", "+err.Error(), http.StatusInternalServerError)
- }
- })
-}
-
func (s SqlChannelStore) GetMembersForUser(teamId string, userId string) store.StoreChannel {
return store.Do(func(result *store.StoreResult) {
members := &model.ChannelMembers{}