Sfoglia il codice sorgente

kebab case for key

Steven Fukase 5 anni fa
parent
commit
94c0e1cb09

+ 1 - 1
src/server/routes/apiv3/slack-integration.js

@@ -87,7 +87,7 @@ module.exports = (crowi) => {
    */
   router.get('/', accessTokenParser, loginRequiredStrictly, adminRequired, async(req, res) => {
     const slackBotSettingParams = {
-      accessToken: crowi.configManager.getConfig('crowi', 'slackbot:accessToken'),
+      accessToken: crowi.configManager.getConfig('crowi', 'slackbot:access-token'),
       currentBotType: crowi.configManager.getConfig('crowi', 'slackbot:currentBotType'),
       // TODO impl when creating official bot
       officialBotSettings: {

+ 1 - 1
src/server/service/config-loader.js

@@ -412,7 +412,7 @@ const ENV_VAR_NAME_TO_CONFIG_INFO = {
   },
   SLACK_BOT_ACCESS_TOKEN: {
     ns:      'crowi',
-    key:     'slackbot:accessToken',
+    key:     'slackbot:access-token',
     type:    TYPES.STRING,
     default: null,
   },