handleChat(event);
}
private void handleUpdatingTable(PlayerCheckedEvent event) {
TableDTO currentTable = tableRepository.fetchById(event.getAggregateId());
String username = loginRepository.fetchUsernameByAggregateId(event.getPlayerId());
<BUG>List<SeatDTO> updatedSeats = new ArrayList<>();
for (SeatDTO seatDTO : currentTable.getSeats()) {
if (seatDTO.getName().equals(username)) {
updatedSeats.add(new SeatDTO(seatDTO.getPosition(),
</BUG>
seatDTO.getName(), seatDTO.getChipsInBack(),

handleChat(event);
}
private void handleUpdatingTable(PlayerCheckedEvent event) {
TableDTO currentTable = tableRepository.fetchById(event.getAggregateId());
String username = loginRepository.fetchUsernameByAggregateId(event.getPlayerId());
List<SeatDTO> updatedSeats = currentTable.getSeats().stream()
.map(seatDTO -> {
if (seatDTO.getName().equals(username)) {
return new SeatDTO(seatDTO.getPosition(),
seatDTO.getName(), seatDTO.getChipsInBack(),
