Skip to content

Commit

Permalink
Fix : 오류 코드 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
namewhat99 committed Jan 13, 2024
1 parent a57e2b6 commit fafefd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions BE/src/chat/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,9 @@ export class ChatService {
} else if (room.writer !== userId && room.user !== userId) {
throw new HttpException('권한이 없습니다.', 403);
} else if (room.writer === userId && room.writer_hide === true) {
throw new HttpException('채팅방이 존재하지 않습니다.', 404);
throw new HttpException('숨긴 채팅방입니다.', 403);
} else if (room.user === userId && room.user_hide === true) {
throw new HttpException('채팅방이 존재하지 않습니다.', 404);
throw new HttpException('숨긴 채팅방입니다.', 403);
}
}

Expand Down

0 comments on commit fafefd4

Please sign in to comment.