|
|
@@ -63,10 +63,10 @@ export class SlackCtrl {
|
|
|
// Send response immediately to avoid opelation_timeout error
|
|
|
// See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
|
|
|
|
|
|
- const supportedGrowiCommandsMappings = {
|
|
|
+ const growiCommandsMappings = {
|
|
|
register: () => this.registerService.openRegisterModal(body),
|
|
|
};
|
|
|
- const executeGrowiCommand = supportedGrowiCommandsMappings[body.text];
|
|
|
+ const executeGrowiCommand = growiCommandsMappings[body.text];
|
|
|
await executeGrowiCommand();
|
|
|
res.send();
|
|
|
|