zahmis 4 лет назад
Родитель
Сommit
6d1ec0e6a4

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

@@ -130,7 +130,7 @@ export class GrowiToSlackCtrl {
     const tokenGtoP = tokenGtoPs[0];
     const tokenGtoP = tokenGtoPs[0];
 
 
     // retrieve relation with Installation
     // retrieve relation with Installation
-    const relation = await this.RelationRepository.createQueryBuilder('relation')
+    const relation = await this.relationRepository.createQueryBuilder('relation')
       .where('tokenGtoP = :token', { token: tokenGtoP })
       .where('tokenGtoP = :token', { token: tokenGtoP })
       .leftJoinAndSelect('relation.installation', 'installation')
       .leftJoinAndSelect('relation.installation', 'installation')
       .getOne();
       .getOne();

+ 1 - 1
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -36,7 +36,7 @@ export class RelationsService {
       relation.permissionsForBroadcastUseCommands = permissionsForBroadcastUseCommands;
       relation.permissionsForBroadcastUseCommands = permissionsForBroadcastUseCommands;
       relation.permissionsForSingleUseCommands = permissionsForSingleUseCommands;
       relation.permissionsForSingleUseCommands = permissionsForSingleUseCommands;
       relation.expiredAtCommands = addHours(new Date(), 48);
       relation.expiredAtCommands = addHours(new Date(), 48);
-      return this.RelationRepository.save(relation);
+      return this.relationRepository.save(relation);
     }
     }
     throw Error('No relation exists.');
     throw Error('No relation exists.');
   }
   }