zahmis 4 лет назад
Родитель
Сommit
11a56195e0

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

@@ -105,14 +105,7 @@ export class checkCommandPermissionMiddleware implements IMiddleware {
     // res.send();
     // res.send();
 
 
     const baseDate = new Date();
     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) => {
     const isSupportedSingle = await relations.map(async(relation) => {
       await this.relationsService.isSupportedGrowiCommandForSingleUse(relation, command, baseDate);
       await this.relationsService.isSupportedGrowiCommandForSingleUse(relation, command, baseDate);
       return;
       return;