diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-23 10:32:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-23 10:32:30 -0500 |
commit | 217cdf447a995fd8f2700b14ba790360ccaeabf6 (patch) | |
tree | ca0b01c4cd869fbadd1d5a831b5775ca9dc066dc /api/deprecated.go | |
parent | ffd6ccde2ed4b1d374d0835c5638a189df60a679 (diff) | |
download | chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.gz chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.tar.bz2 chat-217cdf447a995fd8f2700b14ba790360ccaeabf6.zip |
PLT-5073 Improve performance of /channels/view endpoint (#4881)
* Improve performance of /channels/view endpoint
* Fix store unit test
Diffstat (limited to 'api/deprecated.go')
-rw-r--r-- | api/deprecated.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/deprecated.go b/api/deprecated.go index 183552414..4865ab5e0 100644 --- a/api/deprecated.go +++ b/api/deprecated.go @@ -76,7 +76,7 @@ func updateLastViewedAt(c *Context, w http.ResponseWriter, r *http.Request) { } }() - Srv.Store.Channel().UpdateLastViewedAt(id, c.Session.UserId) + Srv.Store.Channel().UpdateLastViewedAt([]string{id}, c.Session.UserId) // Must be after update so that unread count is correct if doClearPush { |