Skip to content

Commit 181f4ab

Browse files
committed
♻️ refactor: isHost 원상복구
1 parent db62cbc commit 181f4ab

File tree

1 file changed

+1
-1
lines changed
  • backend/src/main/java/io/f1/backend/domain/game/model

1 file changed

+1
-1
lines changed

backend/src/main/java/io/f1/backend/domain/game/model/Room.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public Room(Long id, RoomSetting roomSetting, GameSetting gameSetting, Player ho
5151
}
5252

5353
public boolean isHost(Long id) {
54-
return Objects.equals(host.id, id);
54+
return this.host.getId().equals(id);
5555
}
5656

5757
public void updateQuestions(List<Question> questions) {

0 commit comments

Comments
 (0)