Преглед на файлове

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