Skip to content

Commit

Permalink
Merge pull request #34 from UMC-Blism/refactor-33-donggu
Browse files Browse the repository at this point in the history
[refactor]회원가입 수정
  • Loading branch information
dyk-im authored Dec 21, 2024
2 parents 5c8da1b + c93f736 commit dcc47d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/main/java/com/example/blism/domain/Mailbox.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ public class Mailbox extends BaseTimeEntity {
@Builder
private Mailbox(Member owner) {
this.owner = owner;
this.visibility = 1;
}

public static Mailbox createMailbox(Member owner) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ public Long joinMember(MemberRequestDTO.signupDTO request) {
.nickname(request.getNickname())
.build();

Mailbox newMailbox = Mailbox.builder()
.owner(newMember)
.build();
Mailbox newMailbox = Mailbox.createMailbox(newMember);

memberRepository.save(newMember);
mailboxRepository.save(newMailbox);
Expand Down

0 comments on commit dcc47d3

Please sign in to comment.