Yuki Takei пре 5 година
родитељ
комит
e4300f8abb
1 измењених фајлова са 0 додато и 20 уклоњено
  1. 0 20
      packages/slackbot-proxy/src/controllers/slack.ts

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

@@ -7,7 +7,6 @@ import axios from 'axios';
 import {
   generateMarkdownSectionBlock, parseSlashCommand, postEphemeralErrors,
 } from '@growi/slack';
-import { Installation } from '~/entities/installation';
 
 import { InstallationRepository } from '~/repositories/installation';
 import { RelationRepository } from '~/repositories/relation';
@@ -40,25 +39,6 @@ export class SlackCtrl {
   @Inject()
   registerService: RegisterService;
 
-  @Get('/testsave')
-  testsave(): void {
-    const installation = new Installation();
-    installation.data = {
-      team: undefined,
-      enterprise: undefined,
-      user: {
-        id: '',
-        token: undefined,
-        scopes: undefined,
-      },
-    };
-
-    // const installationRepository = getRepository(Installation);
-
-    this.installationRepository.save(installation);
-  }
-
-
   @Get('/install')
   async install(): Promise<string> {
     const url = await this.installerService.installer.generateInstallUrl({