소스 검색

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