diff options
author | =Corey Hulen <corey@hulen.com> | 2016-01-20 12:43:44 -0600 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2016-01-20 12:43:44 -0600 |
commit | 75f8729e2d25467500778e633c45c97e78a8f7a0 (patch) | |
tree | 47735a3dd609e025837df4460b0d030454358cf1 /api/context.go | |
parent | aac8d121a00922f007b9c67d890ea9dbcfbe4b8f (diff) | |
download | chat-75f8729e2d25467500778e633c45c97e78a8f7a0.tar.gz chat-75f8729e2d25467500778e633c45c97e78a8f7a0.tar.bz2 chat-75f8729e2d25467500778e633c45c97e78a8f7a0.zip |
PLT-7 adding loc db calls for users table
Diffstat (limited to 'api/context.go')
-rw-r--r-- | api/context.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go index 2dcf51e10..59db724c4 100644 --- a/api/context.go +++ b/api/context.go @@ -195,7 +195,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if c.Err == nil && h.isUserActivity && token != "" && len(c.Session.UserId) > 0 { go func() { - if err := (<-Srv.Store.User().UpdateUserAndSessionActivity(c.Session.UserId, c.Session.Id, model.GetMillis())).Err; err != nil { + if err := (<-Srv.Store.User().UpdateUserAndSessionActivity(c.T, c.Session.UserId, c.Session.Id, model.GetMillis())).Err; err != nil { l4g.Error("Failed to update LastActivityAt for user_id=%v and session_id=%v, err=%v", c.Session.UserId, c.Session.Id, err) } }() |