Skip to content

Commit

Permalink
Merge pull request #45 from VOM-Project/feature/signaling
Browse files Browse the repository at this point in the history
feat: member 생성시 homepy 생성 수정
  • Loading branch information
Ojimin authored Jun 13, 2024
2 parents f19b99d + b132adb commit f6dcdec
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import vom.spring.domain.homepy.Homepy;
import vom.spring.domain.homepy.HomepyRepository;
import vom.spring.domain.member.domain.Keyword;
import vom.spring.domain.member.domain.Member;
import vom.spring.domain.member.domain.MemberKeyword;
Expand All @@ -30,6 +32,7 @@ public class MemberServiceImpl implements MemberService {
private final RegionRepository regionRepository;
private final KeywordRepository keywordRepository;
private final MemberKeywordRepository memberKeywordRepository;
private final HomepyRepository homepyRepository;
private final AmazonS3Client amazonS3Client;

@Value("${cloud.aws.s3.bucket}")
Expand Down Expand Up @@ -60,7 +63,9 @@ public MemberResponseDto.CreateDto create(MemberRequestDto.CreateMemberDto reque
}
// 닉네임, 지역, 생년월일 저장
member.joinMember(request.getNickname(), request.getBirth(), region);

//회언가입한 회원 homepy 생성
Homepy homepy = Homepy.builder().member(member).build();
homepyRepository.save(homepy);
return MemberResponseDto.CreateDto.builder()
.memberId(member.getId())
.nickname(memberNickname)
Expand Down

0 comments on commit f6dcdec

Please sign in to comment.