ソースを参照

update name space

Shun Miyazawa 4 年 前
コミット
5750e3adc9

+ 1 - 1
packages/app/src/components/InAppNotification/InAppNotificationDropdown.tsx

@@ -40,7 +40,7 @@ const InAppNotificationDropdown: FC = (props) => {
     console.log(props);
 
     const socket = props.socketIoContainer.getSocket();
-    socket.on('InAppNotification:countUpdate', (data: { userId: string, count: number }) => {
+    socket.on('commentUpdated', (data: { userId: string, count: number }) => {
       // eslint-disable-next-line no-console
       console.log('socketData', data);
 

+ 1 - 1
packages/app/src/server/service/in-app-notification.ts

@@ -40,7 +40,7 @@ export default class InAppNotificationService {
       await this.socketIoService.getDefaultSocket()
         .in(getRoomNameWithId(RoomPrefix.PAGE, pageId))
         .except(getRoomNameWithId(RoomPrefix.USER, userId))
-        .emit('InAppNotification:countUpdate', { userId, count });
+        .emit('commentUpdated', { userId, count });
     }
   }