فهرست منبع

rename and setUp

itizawa 5 سال پیش
والد
کامیت
cc9d71ec2a
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/server/crowi/index.js

+ 2 - 1
src/server/crowi/index.js

@@ -121,6 +121,7 @@ Crowi.prototype.init = async function() {
   // globalNotification depends on slack and mailer
   // globalNotification depends on slack and mailer
   await Promise.all([
   await Promise.all([
     this.setUpGlobalNotification(),
     this.setUpGlobalNotification(),
+    this.setUpUserNotification(),
   ]);
   ]);
 };
 };
 
 
@@ -489,7 +490,7 @@ Crowi.prototype.setUpGlobalNotification = async function() {
 /**
 /**
  * setup UserNotificationService
  * setup UserNotificationService
  */
  */
-Crowi.prototype.setUpGlobalNotification = async function() {
+Crowi.prototype.setUpUserNotification = async function() {
   const UserNotificationService = require('../service/user-notification');
   const UserNotificationService = require('../service/user-notification');
   if (this.userNotificationService == null) {
   if (this.userNotificationService == null) {
     this.userNotificationService = new UserNotificationService(this);
     this.userNotificationService = new UserNotificationService(this);