Explorar el Código

success to log view_submission

kaori hace 5 años
padre
commit
db2838b301
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  1. 7 0
      packages/slackbot-proxy/src/controllers/slack.ts

+ 7 - 0
packages/slackbot-proxy/src/controllers/slack.ts

@@ -77,6 +77,13 @@ 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
 
+
+    if (body.payload != null) {
+      const payload = JSON.parse(body.payload);
+      const { type } = payload;
+      console.log('type', type);
+    }
+
     if (body.text == null) {
       return 'No text.';
     }