diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-09-29 11:45:59 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-09-29 08:45:59 -0700 |
commit | 8b9dbb86133ff0fd6002a391268383d1593918ca (patch) | |
tree | b8399f2bae881afe12f3bdb34ec725e97307144a /api/channel.go | |
parent | 5e50d3f4612dc8e6dffeff268f024a3d383a329c (diff) | |
download | chat-8b9dbb86133ff0fd6002a391268383d1593918ca.tar.gz chat-8b9dbb86133ff0fd6002a391268383d1593918ca.tar.bz2 chat-8b9dbb86133ff0fd6002a391268383d1593918ca.zip |
PLT-7404 Return viewed at times in view channel API response (#7428)
* Return viewed at times in view channel API response
* Updated transaction to read and write once
* Remove transaction and only update if new value greater than older
Diffstat (limited to 'api/channel.go')
-rw-r--r-- | api/channel.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/channel.go b/api/channel.go index 3b033fcb8..7222ba0b1 100644 --- a/api/channel.go +++ b/api/channel.go @@ -779,7 +779,7 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) { return } - if err := c.App.ViewChannel(view, c.Session.UserId, !c.Session.IsMobileApp()); err != nil { + if _, err := c.App.ViewChannel(view, c.Session.UserId, !c.Session.IsMobileApp()); err != nil { c.Err = err return } |