2
0
kaori 4 жил өмнө
parent
commit
da467fb92f

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

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