summaryrefslogtreecommitdiffstats
path: root/api/post.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/post.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/post.go')
-rw-r--r--api/post.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/post.go b/api/post.go
index a662cc147..87678e9c6 100644
--- a/api/post.go
+++ b/api/post.go
@@ -205,7 +205,7 @@ func CreateWebhookPost(c *Context, channelId, text, overrideUsername, overrideIc
func handlePostEventsAndForget(c *Context, post *model.Post, triggerWebhooks bool) {
go func() {
- tchan := Srv.Store.Team().Get(c.Session.TeamId)
+ tchan := Srv.Store.Team().Get(c.T, c.Session.TeamId)
cchan := Srv.Store.Channel().Get(post.ChannelId)
uchan := Srv.Store.User().Get(post.UserId)