zahmis před 4 roky
rodič
revize
3d9d3c1774

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

@@ -213,11 +213,11 @@ export class SlackCtrl {
       });
       const permittedChannelsForEachCommand = relationMock?.permittedChannelsForEachCommand;
 
-      const canCreateArray = permittedChannelsForEachCommand?.create;
-      const canSearchArray = permittedChannelsForEachCommand?.search;
+      const permittedCreateCommandArray = permittedChannelsForEachCommand?.create;
+      const permittedSearchCommandArray = permittedChannelsForEachCommand?.search;
 
 
-      const isCreate = canCreateArray?.includes(body.channel_name);
+      const isCreate = permittedCreateCommandArray?.includes(body.channel_name);
       if (isCreate) {
         console.log('isCreate 内部');
         const relationsForBroadcastUse:RelationMock[] = [];