Skip to content

Commit

Permalink
Feat(#501): online 존재할떄만 알림 emit 수행
Browse files Browse the repository at this point in the history
  • Loading branch information
j-zzi committed May 13, 2024
1 parent 6a36568 commit 49d6b4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/chats/services/chats-room.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export class ChatRoomService {

await Promise.all(
onlineMap.map((online) => {
if (!online.lastLogin) {
if (online && !online.lastLogin) {
this.eventsGateway.server
.to(online.socketId)
.emit('handleNewChatRoom', chatRoom.roomId);
Expand Down

0 comments on commit 49d6b4b

Please sign in to comment.