Displayed proper token on integration creation confirmation (#3991)

Этот коммит содержится в:
Harrison Healey
2016-09-08 08:49:03 -04:00
коммит произвёл enahum
родитель 47f92441ac
Коммит faf944f47a
4 изменённых файлов: 16 добавлений и 18 удалений

Просмотреть файл

@@ -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);
}