zahmis пре 4 година
родитељ
комит
434eb18a74
1 измењених фајлова са 0 додато и 6 уклоњено
  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,
   ):Promise<{isPermittedForInteractions:boolean, commandName:string}> {
 
-    const baseDate = new Date();
-    const syncedRelation = await this.syncRelation(relation, baseDate);
     let isPermittedForInteractions!:boolean;
     let commandName!:string;
 
@@ -123,10 +121,6 @@ export class RelationsService {
 
     [...singleUse, ...broadCastUse].forEach(async(tempCommandName) => {
 
-      if (syncedRelation == null) {
-        return { isPermittedForInteractions: false, commandName: tempCommandName };
-      }
-
       // ex. search OR search:handlerName
       const commandRegExp = new RegExp(`(^${tempCommandName}$)|(^${tempCommandName}:\\w+)`);