kaori 4 лет назад
Родитель
Сommit
23728ad879
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      packages/app/src/server/crowi/index.js
  2. 1 1
      packages/app/src/server/models/notification.ts

+ 1 - 1
packages/app/src/server/crowi/index.js

@@ -308,7 +308,7 @@ Crowi.prototype.scanRuntimeVersions = async function() {
   });
   });
 };
 };
 
 
-Crowi.prototype.getSocketIoService = function() {
+Crowi.prototype.getSocketIo = function() {
   const socket = this.socketIoService.getDefaultSocket();
   const socket = this.socketIoService.getDefaultSocket();
   return socket;
   return socket;
 };
 };

+ 1 - 1
packages/app/src/server/models/notification.ts

@@ -195,7 +195,7 @@ export default (crowi: Crowi) => {
   };
   };
 
 
   notificationEvent.on('update', (user) => {
   notificationEvent.on('update', (user) => {
-    const socket = crowi.getSocketIoService();
+    const socket = crowi.getSocketIo();
 
 
     if (socket != null) {
     if (socket != null) {
       socket.emit('notification updated', { user });
       socket.emit('notification updated', { user });