zahmis 5 lat temu
rodzic
commit
024b804860
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      src/server/service/bolt.js

+ 3 - 1
src/server/service/bolt.js

@@ -32,7 +32,9 @@ class BoltReciever {
     await this.bolt.processEvent(event);
 
     // for verification request URL on Event Subscriptions
-    res.send(req.body);
+    if (req.body.challenge && req.body.type) {
+      res.send(req.body);
+    }
   }
 
 }