({ socketId, comment }: { socketId?: string; comment: ICommentDocument })
| 224 | } |
| 225 | |
| 226 | function commentEdited({ socketId, comment }: { socketId?: string; comment: ICommentDocument }) { |
| 227 | const roomName = `discussion-${comment.discussionId}`; |
| 228 | |
| 229 | const socket = getSocket(socketId); |
| 230 | if (socket) { |
| 231 | socket.to(roomName).emit('commentEvent', { actionType: 'edited', comment }); |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | function commentDeleted({ |
| 236 | socketId, |
no test coverage detected