summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-20 08:33:26 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-20 08:33:26 -0600
commit5b2ec623473abeb44577fbfc9122b792a94a5184 (patch)
treee79a434a7fe9e91f2f7b6a3a0fc4d90cf470c306 /api/context.go
parentca33812cb5b83dba0babc244fdf101c78abc046a (diff)
downloadchat-5b2ec623473abeb44577fbfc9122b792a94a5184.tar.gz
chat-5b2ec623473abeb44577fbfc9122b792a94a5184.tar.bz2
chat-5b2ec623473abeb44577fbfc9122b792a94a5184.zip
PLT-7 adding loc db calls for team table
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go
index fdca52085..13f0f2c42 100644
--- a/api/context.go
+++ b/api/context.go
@@ -387,7 +387,7 @@ func (c *Context) setTeamURL(url string, valid bool) {
}
func (c *Context) SetTeamURLFromSession() {
- if result := <-Srv.Store.Team().Get(c.Session.TeamId); result.Err == nil {
+ if result := <-Srv.Store.Team().Get(c.T, c.Session.TeamId); result.Err == nil {
c.setTeamURL(c.GetSiteURL()+"/"+result.Data.(*model.Team).Name, true)
}
}