diff --git a/src/main/java/Journey/Together/domain/member/dto/InterestDto.java b/src/main/java/Journey/Together/domain/member/dto/InterestDto.java index 515e626..16d3f74 100644 --- a/src/main/java/Journey/Together/domain/member/dto/InterestDto.java +++ b/src/main/java/Journey/Together/domain/member/dto/InterestDto.java @@ -7,19 +7,19 @@ @Builder @JsonInclude(JsonInclude.Include.NON_NULL) public record InterestDto ( - Boolean isPysical, + Boolean isPhysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild ){ - public static InterestDto of( Boolean isPysical, + public static InterestDto of( Boolean isPhysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild){ return InterestDto.builder() - .isPysical(isPysical) + .isPhysical(isPhysical) .isHear(isHear) .isChild(isChild) .isElderly(isElderly) diff --git a/src/main/java/Journey/Together/domain/member/entity/Interest.java b/src/main/java/Journey/Together/domain/member/entity/Interest.java index 65d5cea..09c88ad 100644 --- a/src/main/java/Journey/Together/domain/member/entity/Interest.java +++ b/src/main/java/Journey/Together/domain/member/entity/Interest.java @@ -21,8 +21,8 @@ public class Interest extends BaseTimeEntity { @JoinColumn(name = "member_id") private Member member; - @Column(name = "pysical") - private Boolean isPysical; + @Column(name = "physical") + private Boolean isPhysical; @Column(name = "hear") private Boolean isHear; @@ -37,7 +37,7 @@ public class Interest extends BaseTimeEntity { private Boolean isElderly; public void update(InterestDto interestDto) { - this.isPysical=interestDto.isPysical(); + this.isPhysical=interestDto.isPhysical(); this.isHear=interestDto.isHear(); this.isVisual=interestDto.isVisual(); this.isChild=interestDto.isChild(); @@ -45,9 +45,9 @@ public void update(InterestDto interestDto) { } @Builder - public Interest(Member member, Boolean isPysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild){ + public Interest(Member member, Boolean isPhysical, Boolean isHear, Boolean isVisual, Boolean isElderly, Boolean isChild){ this.member = member; - this.isPysical=isPysical; + this.isPhysical=isPhysical; this.isHear=isHear; this.isVisual=isVisual; this.isChild=isChild; diff --git a/src/main/java/Journey/Together/domain/member/service/AuthService.java b/src/main/java/Journey/Together/domain/member/service/AuthService.java index 19b1f69..13a2118 100644 --- a/src/main/java/Journey/Together/domain/member/service/AuthService.java +++ b/src/main/java/Journey/Together/domain/member/service/AuthService.java @@ -76,7 +76,7 @@ public LoginRes signIn(String token, String type) throws IOException { .member(member) .isHear(false) .isChild(false) - .isPysical(false) + .isPhysical(false) .isVisual(false) .isElderly(false) .build(); @@ -111,7 +111,7 @@ public LoginRes signIn(String token, String type) throws IOException { .member(member) .isHear(false) .isChild(false) - .isPysical(false) + .isPhysical(false) .isVisual(false) .isElderly(false) .build(); diff --git a/src/main/java/Journey/Together/domain/member/service/MemberService.java b/src/main/java/Journey/Together/domain/member/service/MemberService.java index 64037a4..d0ae319 100644 --- a/src/main/java/Journey/Together/domain/member/service/MemberService.java +++ b/src/main/java/Journey/Together/domain/member/service/MemberService.java @@ -100,7 +100,7 @@ public InterestDto findMemberInterest(Member member){ Interest interest = interestRepository.findByMemberAndDeletedAtIsNull(member); //Business InterestDto interestDto = InterestDto.of( - interest.getIsPysical(), + interest.getIsPhysical(), interest.getIsHear(), interest.getIsVisual(), interest.getIsElderly(),