Skip to content

Commit

Permalink
Merge pull request #792 from peer-42seoul/hotfix-use-recruitStatus-wh…
Browse files Browse the repository at this point in the history
…en-get-favorite

[Hotfix] use recruitStatus when get favorite:
  • Loading branch information
weejihye authored Feb 6, 2024
2 parents 85645af + 5bed55a commit 34fb429
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,13 @@ public class RecruitFavoriteDto {
public RecruitFavoriteDto(RecruitFavorite favorite){
Recruit recruit = favorite.getRecruit();
User writer = recruit.getWriter();
Team team = recruit.getTeam();
this.recruit_id = recruit.getId();
this.title = recruit.getTitle();
this.image = recruit.getThumbnailUrl();
this.userId = recruit.getWriterId();
this.userNickname = (writer == null) ? "탈퇴한 유저" : writer.getNickname();
this.userImage = (writer == null) ? null : writer.getImageUrl();
this.status = team.getStatus().getValue();
this.status = recruit.getStatus().getStatus();
this.skillList = recruit.getRecruitTags().stream().map(RecruitTag::getSkillFromTag).collect(Collectors.toList());
this.isFavorite = true;
}
Expand Down

0 comments on commit 34fb429

Please sign in to comment.