diff options
author | Chris <ccbrown112@gmail.com> | 2017-07-31 08:52:45 -0700 |
---|---|---|
committer | Harrison Healey <harrisonmhealey@gmail.com> | 2017-07-31 11:52:45 -0400 |
commit | 72f61ab96aabf65c162c8d94b5b843b5108ee1a9 (patch) | |
tree | c80d7158613663a0b3f584a1736ef1cbff72d160 /store/store.go | |
parent | 0f786a42d3289df9b4f5bdb4bddb0ecb07631608 (diff) | |
download | chat-72f61ab96aabf65c162c8d94b5b843b5108ee1a9.tar.gz chat-72f61ab96aabf65c162c8d94b5b843b5108ee1a9.tar.bz2 chat-72f61ab96aabf65c162c8d94b5b843b5108ee1a9.zip |
make cli team / channel delete operations also delete webhooks and slash commands (#7028)
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index 0fa2a96b3..6d84a0919 100644 --- a/store/store.go +++ b/store/store.go @@ -296,6 +296,7 @@ type WebhookStore interface { UpdateIncoming(webhook *model.IncomingWebhook) StoreChannel GetIncomingByChannel(channelId string) StoreChannel DeleteIncoming(webhookId string, time int64) StoreChannel + PermanentDeleteIncomingByChannel(channelId string) StoreChannel PermanentDeleteIncomingByUser(userId string) StoreChannel SaveOutgoing(webhook *model.OutgoingWebhook) StoreChannel @@ -304,6 +305,7 @@ type WebhookStore interface { GetOutgoingByChannel(channelId string, offset, limit int) StoreChannel GetOutgoingByTeam(teamId string, offset, limit int) StoreChannel DeleteOutgoing(webhookId string, time int64) StoreChannel + PermanentDeleteOutgoingByChannel(channelId string) StoreChannel PermanentDeleteOutgoingByUser(userId string) StoreChannel UpdateOutgoing(hook *model.OutgoingWebhook) StoreChannel @@ -317,6 +319,7 @@ type CommandStore interface { Get(id string) StoreChannel GetByTeam(teamId string) StoreChannel Delete(commandId string, time int64) StoreChannel + PermanentDeleteByTeam(teamId string) StoreChannel PermanentDeleteByUser(userId string) StoreChannel Update(hook *model.Command) StoreChannel AnalyticsCommandCount(teamId string) StoreChannel |