zahmis 4 年之前
父節點
當前提交
e8749ae87d
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      packages/app/src/server/routes/apiv3/slack-integration.js

+ 3 - 3
packages/app/src/server/routes/apiv3/slack-integration.js

@@ -57,9 +57,9 @@ module.exports = (crowi) => {
 
     const relation = await SlackAppIntegration.findOne({ tokenPtoG });
     // MOCK DATA DELETE THIS GW-6972 ---------------
-    const SlackAppIntegration = mongoose.model('SlackAppIntegration');
-    const slackAppIntegration = await SlackAppIntegration.findOne({ tokenPtoG });
-    const channelsObject = slackAppIntegration.permittedChannelsForEachCommand._doc.channelsObject;
+    const SlackAppIntegrationMock = mongoose.model('SlackAppIntegrationMock');
+    const slackAppIntegrationMock = await SlackAppIntegrationMock.findOne({ tokenPtoG });
+    const channelsObject = slackAppIntegrationMock.permittedChannelsForEachCommand._doc.channelsObject;
     // MOCK DATA DELETE THIS GW-6972 ---------------
     const { supportedCommandsForBroadcastUse, supportedCommandsForSingleUse } = relation;
     const supportedCommands = supportedCommandsForBroadcastUse.concat(supportedCommandsForSingleUse);