Skip to content

Commit

Permalink
style : savedInfluencers 변수 삭제
Browse files Browse the repository at this point in the history
메서드 체이닝을 통해 필요 없는 변수를 삭제
  • Loading branch information
BaeJunho committed Sep 22, 2024
1 parent 9d6f36d commit bd94b61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/team7/inplace/video/service/VideoService.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ public class VideoService {

public List<VideoData> findByInfluencer(List<String> influencers){
// 인플루언서 정보 처리
List<Influencer> savedInfluencers = influencerRepository.findByNameIn(influencers);
List<Long> influencerIds = savedInfluencers.stream()
List<Long> influencerIds = influencerRepository.findByNameIn(influencers).stream()
.map(Influencer::getId)
.toList();

Expand Down

0 comments on commit bd94b61

Please sign in to comment.