Skip to content

Commit 86b8521

Browse files
author
성현주
committed
Fix: Room 모델
password: select: false로 설정해 놓아서 기본적으로 조회가 안 됨 보려면 굳이 .select(+password)를 추가해주어야 한다. 그래서 추가했다
1 parent 7a9313c commit 86b8521

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/websocket/websocket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function initWebSocket(httpServer) {
4747
const password = data.password;
4848

4949
try {
50-
const room = await Room.findById(roomId);
50+
const room = await Room.findById(roomId).select("+password");
5151

5252
if (!room)
5353
throw new CustomError("ROOM_001", "방이 존재하지 않습니다.");

0 commit comments

Comments
 (0)