diff options
Diffstat (limited to 'webapp/stores/integration_store.jsx')
-rw-r--r-- | webapp/stores/integration_store.jsx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/webapp/stores/integration_store.jsx b/webapp/stores/integration_store.jsx index a23b9d206..33680452b 100644 --- a/webapp/stores/integration_store.jsx +++ b/webapp/stores/integration_store.jsx @@ -73,6 +73,10 @@ class IntegrationStore extends EventEmitter { return this.outgoingWebhooks.get(teamId) || []; } + getOutgoingWebhook(teamId, id) { + return this.getOutgoingWebhooks(teamId).filter((outgoingWebhook) => outgoingWebhook.id === id)[0]; + } + setOutgoingWebhooks(teamId, outgoingWebhooks) { this.outgoingWebhooks.set(teamId, outgoingWebhooks); } @@ -116,6 +120,10 @@ class IntegrationStore extends EventEmitter { return this.commands.get(teamId) || []; } + getCommand(teamId, id) { + return this.getCommands(teamId).filter((command) => command.id === id)[0]; + } + setCommands(teamId, commands) { this.commands.set(teamId, commands); } |