zahmis 4 년 전
부모
커밋
11a56195e0
1개의 변경된 파일1개의 추가작업 그리고 8개의 파일을 삭제
  1. 1 8
      packages/slackbot-proxy/src/middlewares/slack-to-growi/checkCommandPermission.ts

+ 1 - 8
packages/slackbot-proxy/src/middlewares/slack-to-growi/checkCommandPermission.ts

@@ -105,14 +105,7 @@ export class checkCommandPermissionMiddleware implements IMiddleware {
     // res.send();
 
     const baseDate = new Date();
-    // const relationsForSingleUse:RelationMock[] = [];
-    // await Promise.all(relations.map(async(relation) => {
-    //   const isSupported = await this.relationsService.isSupportedGrowiCommandForSingleUse(relation, command, baseDate);
-    //   if (isSupported) {
-    //     console.log(75);
-    //     return next();
-    //   }
-    // }));
+
     const isSupportedSingle = await relations.map(async(relation) => {
       await this.relationsService.isSupportedGrowiCommandForSingleUse(relation, command, baseDate);
       return;