zahmis 5 lat temu
rodzic
commit
104f2c9027

+ 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 });