Explorar o código

fix notAllowedCommandName

zahmis %!s(int64=4) %!d(string=hai) anos
pai
achega
7095395043
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/slackbot-proxy/src/services/RelationsService.ts

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

@@ -14,7 +14,7 @@ const logger = loggerFactory('slackbot-proxy:services:RelationsService');
 type checkPermissionForInteractionsResults = {
   allowedRelations:Relation[],
   disallowedGrowiUrls:Set<string>,
-  notAllowedCommandName:string,
+  notAllowedCommandName:string|null,
 }
 
 @Service()
@@ -119,7 +119,7 @@ export class RelationsService {
 
     const allowedRelations:Relation[] = [];
     const disallowedGrowiUrls:Set<string> = new Set();
-    let notAllowedCommandName = '';
+    let notAllowedCommandName:string| null = null;
 
     await Promise.all(relations.map(async(relation) => {
       let permissionForInteractions:boolean|string[];