Skip to content

Commit

Permalink
hotfix(room-info): 스타트 누르면 항상 isStarted true
Browse files Browse the repository at this point in the history
  • Loading branch information
vimkim committed Dec 12, 2023
1 parent 1f812e3 commit a6baf91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions server/src/socket/socket.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,12 @@ export class SocketService {
throw new WsException('방장이 아닙니다.');
}

this.logger.debug(util.inspect(startingRoomInfo));

// update room entity properties: problems, isStarted, endAt

const { problems, duration, isStarted } = startingRoomInfo;
const { problems, duration } = startingRoomInfo;
if (problems == null) throw new WsException('problems is null');
if (isStarted == null) throw new WsException('isStarted is null');
if (duration == null) throw new WsException('duration is null');
const bojProblemIds = problems.map((problem) => problem.bojProblemId);
room.problems =
Expand Down

0 comments on commit a6baf91

Please sign in to comment.