zahmis 4 лет назад
Родитель
Сommit
9d5db3de31

+ 1 - 0
packages/slackbot-proxy/src/controllers/slack.ts

@@ -217,6 +217,7 @@ export class SlackCtrl {
       const permittedSearchCommandArray = permittedChannelsForEachCommand?.search;
       const permittedSearchCommandArray = permittedChannelsForEachCommand?.search;
 
 
       const isCreate = permittedCreateCommandArray?.includes(body.channel_name);
       const isCreate = permittedCreateCommandArray?.includes(body.channel_name);
+
       if (isCreate) {
       if (isCreate) {
         const relationsForBroadcastUse:RelationMock[] = [];
         const relationsForBroadcastUse:RelationMock[] = [];
         body.permittedChannelsForEachCommand = relations[0].permittedChannelsForEachCommand;
         body.permittedChannelsForEachCommand = relations[0].permittedChannelsForEachCommand;

+ 1 - 1
packages/slackbot-proxy/src/entities/relation-mock.ts

@@ -11,7 +11,7 @@ import { Installation } from './installation';
 //     search: ['admin'],
 //     search: ['admin'],
 //   }
 //   }
 interface PermittedChannelsForEachCommand {
 interface PermittedChannelsForEachCommand {
-   [command: string]: string[] ;
+   channelsObject:{[command: string]: string[]}
 }
 }
 
 
 @Entity()
 @Entity()