瀏覽代碼

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
   await Promise.all([
     this.setUpGlobalNotification(),
+    this.setUpUserNotification(),
   ]);
 };
 
@@ -489,7 +490,7 @@ Crowi.prototype.setUpGlobalNotification = async function() {
 /**
  * setup UserNotificationService
  */
-Crowi.prototype.setUpGlobalNotification = async function() {
+Crowi.prototype.setUpUserNotification = async function() {
   const UserNotificationService = require('../service/user-notification');
   if (this.userNotificationService == null) {
     this.userNotificationService = new UserNotificationService(this);