summaryrefslogtreecommitdiffstats
path: root/api
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2016-01-11 10:04:01 -0600
committer=Corey Hulen <corey@hulen.com>2016-01-11 10:04:01 -0600
commit2fd597043b45a75495164915ba6c41d5ab18c5ae (patch)
tree41df6781fa1a42777f6cea867b95dc30f08aa5d0 /api
parent2bf43e79582c2e8ca50caa29d7457716112b4796 (diff)
downloadchat-2fd597043b45a75495164915ba6c41d5ab18c5ae.tar.gz
chat-2fd597043b45a75495164915ba6c41d5ab18c5ae.tar.bz2
chat-2fd597043b45a75495164915ba6c41d5ab18c5ae.zip
Chaning webhooks to be team wide
Diffstat (limited to 'api')
-rw-r--r--api/webhook.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/webhook.go b/api/webhook.go
index de3d567ec..0f03d9e36 100644
--- a/api/webhook.go
+++ b/api/webhook.go
@@ -140,7 +140,7 @@ func getIncomingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
- if result := <-Srv.Store.Webhook().GetIncomingByUser(c.Session.UserId); result.Err != nil {
+ if result := <-Srv.Store.Webhook().GetIncomingByTeam(c.Session.TeamId); result.Err != nil {
c.Err = result.Err
return
} else {
@@ -228,7 +228,7 @@ func getOutgoingHooks(c *Context, w http.ResponseWriter, r *http.Request) {
}
}
- if result := <-Srv.Store.Webhook().GetOutgoingByCreator(c.Session.UserId); result.Err != nil {
+ if result := <-Srv.Store.Webhook().GetOutgoingByTeam(c.Session.TeamId); result.Err != nil {
c.Err = result.Err
return
} else {