Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev #74

Merged
merged 9 commits into from
Jan 5, 2025
Merged

Dev #74

Changes from 1 commit
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
Prev Previous commit
Next Next commit
leaveChatRoom 수정
khmandarrin committed Jan 4, 2025
commit d04ec9b13182978b3981a27b6a30502a6ec28077
5 changes: 0 additions & 5 deletions src/chat-message/chat-message.service.ts
Original file line number Diff line number Diff line change
@@ -96,7 +96,6 @@ export class ChatMessageService {
});

if (messages.length === 0) {
console.log(`채팅방 ID ${chatRoomId}에 활성화된 메시지가 없습니다.`);
return;
}

@@ -106,9 +105,5 @@ export class ChatMessageService {
}

await this.chatMessageRepository.save(messages);

console.log(
`채팅방 ID ${chatRoomId}의 메시지 상태를 모두 비활성화했습니다.`,
);
}
}
2 changes: 1 addition & 1 deletion src/chat-room/chat-room.service.ts
Original file line number Diff line number Diff line change
@@ -86,8 +86,8 @@ export class ChatRoomService {
async deleteChatRoom(chatRoomId: number, userId: number): Promise<void> {
const chatRoom = await this.chatRoomRepository.findOne({
where: { id: chatRoomId },
relations: ['fromUser', 'toUser'],
});

if (!chatRoom) {
throw DataNotFoundException('채팅방을 찾을 수 없습니다.');
}