소스 검색

fix error

zahmis 5 년 전
부모
커밋
024b804860
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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);
+    }
   }
 
 }