zahmis 4 лет назад
Родитель
Сommit
104f2c9027
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/server/routes/apiv3/slack-integration-settings.js

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

@@ -259,7 +259,7 @@ module.exports = (crowi) => {
       tokenPtoG = 'v2';
       // eslint-disable-next-line no-await-in-loop
       checkTokens = await SlackAppIntegration.findOne({ $or: [{ tokenGtoP }, { tokenPtoG }] });
-    } while (checkTokens);
+    } while (checkTokens != null);
 
     try {
       const slackAppTokens = await SlackAppIntegration.create({ tokenGtoP, tokenPtoG });