Browse Source

fix error

zahmis 5 năm trước cách đây
mục cha
commit
024b804860
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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);
+    }
   }
 
 }