Browse Source

fix error

zahmis 5 years ago
parent
commit
024b804860
1 changed files with 3 additions and 1 deletions
  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);
+    }
   }
 
 }