summaryrefslogtreecommitdiffstats
path: root/store/store.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-10-22 14:27:47 -0400
committerJoramWilander <jwawilander@gmail.com>2015-10-22 14:27:47 -0400
commita431ba2c22918412d90d00c37fb89f6841f47eb8 (patch)
treea97206298923b7c9972b6c7bfdbf8d6caf7edae4 /store/store.go
parent46f448899bf715fa2b557562a6a01d80ca4fc6b4 (diff)
downloadchat-a431ba2c22918412d90d00c37fb89f6841f47eb8.tar.gz
chat-a431ba2c22918412d90d00c37fb89f6841f47eb8.tar.bz2
chat-a431ba2c22918412d90d00c37fb89f6841f47eb8.zip
Delete webhooks when the associated channel gets deleted
Diffstat (limited to 'store/store.go')
-rw-r--r--store/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go
index 27731cee1..7259556e7 100644
--- a/store/store.go
+++ b/store/store.go
@@ -149,6 +149,7 @@ type WebhookStore interface {
SaveIncoming(webhook *model.IncomingWebhook) StoreChannel
GetIncoming(id string) StoreChannel
GetIncomingByUser(userId string) StoreChannel
+ GetIncomingByChannel(channelId string) StoreChannel
DeleteIncoming(webhookId string, time int64) StoreChannel
SaveOutgoing(webhook *model.OutgoingWebhook) StoreChannel
GetOutgoing(id string) StoreChannel