Răsfoiți Sursa

delete syncRelations

zahmis 4 ani în urmă
părinte
comite
434eb18a74
1 a modificat fișierele cu 0 adăugiri și 6 ștergeri
  1. 0 6
      packages/slackbot-proxy/src/services/RelationsService.ts

+ 0 - 6
packages/slackbot-proxy/src/services/RelationsService.ts

@@ -112,8 +112,6 @@ export class RelationsService {
       relation:RelationMock, channelName:string, callbackId:string, actionId:string,
       relation:RelationMock, channelName:string, callbackId:string, actionId:string,
   ):Promise<{isPermittedForInteractions:boolean, commandName:string}> {
   ):Promise<{isPermittedForInteractions:boolean, commandName:string}> {
 
 
-    const baseDate = new Date();
-    const syncedRelation = await this.syncRelation(relation, baseDate);
     let isPermittedForInteractions!:boolean;
     let isPermittedForInteractions!:boolean;
     let commandName!:string;
     let commandName!:string;
 
 
@@ -123,10 +121,6 @@ export class RelationsService {
 
 
     [...singleUse, ...broadCastUse].forEach(async(tempCommandName) => {
     [...singleUse, ...broadCastUse].forEach(async(tempCommandName) => {
 
 
-      if (syncedRelation == null) {
-        return { isPermittedForInteractions: false, commandName: tempCommandName };
-      }
-
       // ex. search OR search:handlerName
       // ex. search OR search:handlerName
       const commandRegExp = new RegExp(`(^${tempCommandName}$)|(^${tempCommandName}:\\w+)`);
       const commandRegExp = new RegExp(`(^${tempCommandName}$)|(^${tempCommandName}:\\w+)`);