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;