2
0
itizawa 4 жил өмнө
parent
commit
09015095a2

+ 0 - 1
src/server/models/slack-app-integration.js

@@ -4,7 +4,6 @@ const mongoose = require('mongoose');
 const schema = new mongoose.Schema({
   tokenGtoP: { type: String, required: true, unique: true },
   tokenPtoG: { type: String, required: true, unique: true },
-  slackBotToken: { type: String, unique: true, sparse: true },
 });
 class SlackAppIntegration {
 

+ 0 - 11
src/server/routes/apiv3/slack-integration-settings.js

@@ -532,17 +532,6 @@ module.exports = (crowi) => {
       return res.apiv3Err(new ErrorV3(`Error occured while testing. Cause: ${error.message}`, 'test-failed', error.stack));
     }
 
-    try {
-      slackAppIntegration = await SlackAppIntegration.findByIdAndUpdate(slackAppIntegrationId, { slackBotToken });
-    }
-    catch (error) {
-      logger.error('Error', error);
-      return res.apiv3Err(new ErrorV3(
-        `Error occured while updationg slackAppIntegration. Cause: ${error.message}`,
-        'update-slackAppIntegration-failed', error.stack,
-      ));
-    }
-
     const { channel } = req.body;
     const appSiteURL = crowi.configManager.getConfig('crowi', 'app:siteUrl');
     try {