zahmis 4 年之前
父节点
当前提交
f3f53974c9
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. 5 3
      packages/slackbot-proxy/src/controllers/slack.ts

+ 5 - 3
packages/slackbot-proxy/src/controllers/slack.ts

@@ -221,10 +221,10 @@ export class SlackCtrl {
       switch (growiCommand.growiCommandType) {
       switch (growiCommand.growiCommandType) {
         case 'create':
         case 'create':
           if (isCreate) {
           if (isCreate) {
-            const relationsForBroadcastUse:RelationMock[] = [];
+            const relationsForSingleUse:RelationMock[] = [];
             body.permittedChannelsForEachCommand = relations[0].permittedChannelsForEachCommand;
             body.permittedChannelsForEachCommand = relations[0].permittedChannelsForEachCommand;
-            relationsForBroadcastUse.push(relations[0]);
-            return this.sendCommand(growiCommand, relationsForBroadcastUse, body);
+            relationsForSingleUse.push(relations[0]);
+            return this.sendCommand(growiCommand, relationsForSingleUse, body);
           }
           }
           break;
           break;
         case 'search':
         case 'search':
@@ -238,6 +238,7 @@ export class SlackCtrl {
         default:
         default:
           break;
           break;
       }
       }
+      console.log(241);
 
 
       return client.chat.postEphemeral({
       return client.chat.postEphemeral({
         text: 'Error occured.',
         text: 'Error occured.',
@@ -325,6 +326,7 @@ export class SlackCtrl {
       });
       });
     }
     }
     catch (err) {
     catch (err) {
+      console.log(329);
       logger.error(err);
       logger.error(err);
     }
     }
   }
   }