Skip to content

Commit

Permalink
fix: recruit 업데이트시, limitation값 반영되지 않는 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
khs960616 authored Oct 29, 2023
1 parent 51d04f3 commit d5694e0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public void updateRecruit(Long recruitId, Long memberId, PatchRecruitReqDto recr
}

recruitLimitationRepository.deleteAllByRecruit(recruit);
recruit.setRecruitLimitations(recruitLimitations);

recruit.update(recruitReqDto);
recruit.setRecruitLimitations(recruitLimitations);
recruitLimitationRepository.saveAll(recruitLimitations);

List<MetaData> recruitTypes = recruitLimitations.stream()
.map(RecruitLimitation::getType)
Expand Down

0 comments on commit d5694e0

Please sign in to comment.