From 75f8729e2d25467500778e633c45c97e78a8f7a0 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Wed, 20 Jan 2016 12:43:44 -0600 Subject: PLT-7 adding loc db calls for users table --- api/post.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api/post.go') diff --git a/api/post.go b/api/post.go index f41f52fe9..181385f56 100644 --- a/api/post.go +++ b/api/post.go @@ -207,7 +207,7 @@ func handlePostEventsAndForget(c *Context, post *model.Post, triggerWebhooks boo go func() { tchan := Srv.Store.Team().Get(c.T, c.Session.TeamId) cchan := Srv.Store.Channel().Get(c.T, post.ChannelId) - uchan := Srv.Store.User().Get(post.UserId) + uchan := Srv.Store.User().Get(c.T, post.UserId) var team *model.Team if result := <-tchan; result.Err != nil { @@ -394,7 +394,7 @@ func sendNotificationsAndForget(c *Context, post *model.Post, team *model.Team, go func() { // Get a list of user names (to be used as keywords) and ids for the given team - uchan := Srv.Store.User().GetProfiles(c.Session.TeamId) + uchan := Srv.Store.User().GetProfiles(c.T, c.Session.TeamId) echan := Srv.Store.Channel().GetMembers(c.T, post.ChannelId) var channelName string -- cgit v1.2.3-1-g7c22