itizawa hace 5 años
padre
commit
73a4eafb8a
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/server/routes/apiv3/pages.js

+ 1 - 1
src/server/routes/apiv3/pages.js

@@ -248,7 +248,7 @@ module.exports = (crowi) => {
     }
 
     // user notification
-    if (isSlackEnabled && userNotificationService != null) {
+    if (isSlackEnabled) {
       try {
         const results = await userNotificationService.fire(createdPage, req.user, slackChannels, 'create', false);
         results.forEach((result) => {