summaryrefslogtreecommitdiffstats
path: root/app/webhook.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-09-14 11:47:34 -0400
committerGitHub <noreply@github.com>2017-09-14 11:47:34 -0400
commit23e64ec9aa2fd245a7e3b2faf5973433d8080c03 (patch)
tree8e3309f5415933ef077c6348cfb438f184ad1dd3 /app/webhook.go
parent9fc7845112692b2dcca2b928e463fade7a5bfb7b (diff)
downloadchat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.tar.gz
chat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.tar.bz2
chat-23e64ec9aa2fd245a7e3b2faf5973433d8080c03.zip
Invalidate webhook cache after updating webhook (#7430)
Diffstat (limited to 'app/webhook.go')
-rw-r--r--app/webhook.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/webhook.go b/app/webhook.go
index 0dfbde7ac..61b8b4d1a 100644
--- a/app/webhook.go
+++ b/app/webhook.go
@@ -219,6 +219,7 @@ func (a *App) UpdateIncomingWebhook(oldHook, updatedHook *model.IncomingWebhook)
if result := <-a.Srv.Store.Webhook().UpdateIncoming(updatedHook); result.Err != nil {
return nil, result.Err
} else {
+ a.InvalidateCacheForWebhook(oldHook.Id)
return result.Data.(*model.IncomingWebhook), nil
}
}