diff options
author | Elias Nahum <nahumhbl@gmail.com> | 2016-09-08 10:27:49 -0300 |
---|---|---|
committer | Elias Nahum <nahumhbl@gmail.com> | 2016-09-08 10:27:49 -0300 |
commit | eb8373aa80905fc57173da03ed5b2bd972c83d53 (patch) | |
tree | d543342c710b633fe75313ece472314202e7bc44 /webapp/stores | |
parent | a5ebbcfdb4f151de204b6be276c5f07175ceb82a (diff) | |
parent | b2b2d141a9c4b423e6920930b726becd1e46436c (diff) | |
download | chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.gz chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.tar.bz2 chat-eb8373aa80905fc57173da03ed5b2bd972c83d53.zip |
Merge branch 'release-3.4' RC4
Diffstat (limited to 'webapp/stores')
-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); } |