zahmis 5 سال پیش
والد
کامیت
0f8fed116e
2فایلهای تغییر یافته به همراه4 افزوده شده و 4 حذف شده
  1. 1 1
      packages/slack/src/utils/verifying-is-slack-request.ts
  2. 3 3
      src/server/routes/apiv3/slack-bot.js

+ 1 - 1
packages/slack/src/utils/verifying-is-slack-request.ts

@@ -38,5 +38,5 @@
 // };
 
 export const verifyingIsSlackRequest = (req, res, next) => {
-return console.log("wimatu")
+return 'hoge'
 }

+ 3 - 3
src/server/routes/apiv3/slack-bot.js

@@ -69,10 +69,10 @@ module.exports = (crowi) => {
   //   return res.send('Verification failed');
   // }
 
-  router.post('/', /* verificationRequestUrl, */ verifyingIsSlackRequest, /* verificationAccessToken, */ async(req, res) => {
+  router.post('/', /* verificationRequestUrl, */ /* verifyingIsSlackRequest(), */ /* verificationAccessToken, */ async(req, res) => {
 
-    // const hoge = verifyingIsSlackRequest();
-    // console.log(hoge);
+    const hoge = verifyingIsSlackRequest();
+    console.log('slackbotapi', hoge);
     // Send response immediately to avoid opelation_timeout error
     // See https://api.slack.com/apis/connections/events-api#the-events-api__responding-to-events
     res.send();