Преглед изворни кода

check userNotificationService

itizawa пре 5 година
родитељ
комит
07cd4cebf3
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/server/routes/apiv3/pages.js

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

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