Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/socket/handlers/task.handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ export const setupTaskHandlers = (io, socket) => {
});

// 같은 Task 방에 있는 사람들에게 알림
socket.to(`task:${taskId}`).emit(commentEvents.CREATED_COMMENT, {
io.to(`task:${taskId}`).emit(commentEvents.CREATED_COMMENT, {
taskId: Number(taskId),
subTaskId: Number(subTaskId),
comment: newComment
Expand Down Expand Up @@ -425,7 +425,7 @@ export const setupTaskHandlers = (io, socket) => {
const updatedComment = await CommentService.updateComment(Number(commentId), userId, content);

//나 제외하고 모두에게 보냄.
socket.to(`task:${taskId}`).emit(commentEvents.UPDATED_COMMENT, {
io.to(`task:${taskId}`).emit(commentEvents.UPDATED_COMMENT, {
taskId: Number(taskId),
subTaskId: Number(subTaskId),
comment: updatedComment
Expand Down