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

+ 2 - 2
packages/slackbot-proxy/src/controllers/slack.ts

@@ -213,8 +213,8 @@ export class SlackCtrl {
       });
       const permittedChannelsForEachCommand = relationMock?.permittedChannelsForEachCommand;
 
-      const permittedCreateCommandArray = permittedChannelsForEachCommand?.create;
-      const permittedSearchCommandArray = permittedChannelsForEachCommand?.search;
+      const permittedCreateCommandArray = permittedChannelsForEachCommand?.channelsObject.create;
+      const permittedSearchCommandArray = permittedChannelsForEachCommand?.channelsObject.search;
 
       const isCreate = permittedCreateCommandArray?.includes(body.channel_name);