sou il y a 7 ans
Parent
commit
69e3683958
1 fichiers modifiés avec 8 ajouts et 8 suppressions
  1. 8 8
      lib/routes/page.js

+ 8 - 8
lib/routes/page.js

@@ -293,10 +293,10 @@ module.exports = function(crowi, app) {
           }
         })
         .then(() => {
-          return getSlackChannels(page)
-            .then((channels) => {
-              renderVars.slack = channels;
-            });
+          return getSlackChannels(page);
+        })
+        .then((channels) => {
+          renderVars.slack = channels;
         })
         .then(function() {
           var userPage = isUserPage(page.path);
@@ -513,10 +513,10 @@ module.exports = function(crowi, app) {
       }
     })
     .then(() => {
-      return getSlackChannels(pageData)
-        .then((channels) => {
-          renderVars.slack = channels;
-        });
+      return getSlackChannels(pageData);
+    })
+    .then(channels => {
+      renderVars.slack = channels;
     })
     .then(function() {
       if (userPage) {