Skip to content

Conversation

@Umjiseung
Copy link
Member

개요

랭킹 리스트를 반환하는 도중에 동알인물이 중복으로 반환되는 상황이 생겨 수정하였습니다.

본문

studentParticipants를 조회 후 studentIds를 추출하는 중에 중복된 id가 들어가는 상황이 생겨 .toSet().toList()를 사용하여 중복을 방지하였습니다.

@Umjiseung Umjiseung requested a review from vumrra April 12, 2025 10:41
@Umjiseung Umjiseung self-assigned this Apr 12, 2025
vumrra

This comment was marked as abuse.

@vumrra vumrra self-requested a review April 13, 2025 08:41
Copy link
Contributor

@vumrra vumrra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

중복된 id 리스트가 나올 수 있는 경우가 있나요?

@Umjiseung
Copy link
Member Author

중복된 id 리스트가 나올 수 있는 경우가 있나요?

로직 상이나 stageParticipant가 중복되어 나올 수 없지만 혹시 모를 이유로 id를 추출할 때 중복되어버린다고 가정하여서 id가 중복이 될 수 없도록 set -> list로 변환하는 과정을 추가하였습니다

@Umjiseung Umjiseung closed this Apr 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants