Skip to content

Commit

Permalink
♻️ refactor/#9 : null 값 빈 배열 처리
Browse files Browse the repository at this point in the history
Signed-off-by: EunJiJung <[email protected]>
  • Loading branch information
bianbbc87 committed Nov 20, 2024
1 parent d7cac33 commit 39e30dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class ReadCompanyBriefService implements ReadCompanyBriefUseCase {
// company images만 반환하는 메서드
public ReadCompanyBriefResponseDto execute() {
return ReadCompanyBriefResponseDto.fromEntity(
companyRepository.findAllImgUrlBy()
companyRepository.findAllImgUrls()
);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public Company createCompany(
) {
return Company.builder()
.name(name)
.imgUrl(imgUrl)
.imgUrl(imgUrl != null ? imgUrl : "")
.build();
}
}

0 comments on commit 39e30dc

Please sign in to comment.