Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] 아바타 전체 조회 시 웹소소 아바타 제외 #236

Merged
merged 9 commits into from
Dec 17, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public AvatarsGetResponse getAvatarList(User user) {
Byte representativeAvatarId = user.getAvatarId();
List<Avatar> avatars = avatarRepository.findAll();
List<AvatarGetResponse> avatarGetResponses = avatars.stream()
.filter(avatar -> avatar.getAvatarId() >= 0)
.map(avatar -> {
List<AvatarLine> avatarLines = avatar.getAvatarLines();
return AvatarGetResponse.of(avatar, getRandomAvatarLine(avatarLines), representativeAvatarId);
Expand Down
Loading