zahmis 4 лет назад
Родитель
Сommit
547c8e3c02
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      packages/slackbot-proxy/src/entities/relation-mock.ts

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

@@ -10,8 +10,8 @@ import { Installation } from './installation';
 //     create: ['srv', 'admin'],
 //     search: ['admin'],
 //   }
-interface PermittedChannelsForEachCommand {
-   channelsObject:{[command: string]: string[]}
+interface supportedCommandInterface {
+   [commandName: string]: boolean | string[]
 }
 
 @Entity()
@@ -42,13 +42,10 @@ export class RelationMock {
   growiUri: string;
 
   @Column('simple-array')
-  supportedCommandsForBroadcastUse: string[];
+  supportedCommandsForBroadcastUse: supportedCommandInterface;
 
   @Column('simple-array')
-  supportedCommandsForSingleUse: string[];
-
-  @Column({ type: 'json' })
-  permittedChannelsForEachCommand : PermittedChannelsForEachCommand
+  supportedCommandsForSingleUse: supportedCommandInterface;
 
   @CreateDateColumn()
   expiredAtCommands: Date;