Skip to content

Commit

Permalink
Merge branch 'Review' into Master
Browse files Browse the repository at this point in the history
  • Loading branch information
rbm0524 authored Oct 26, 2024
2 parents 3472755 + 2351919 commit ee7be5c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class JwtUtil {
private final SecretKey key;
private final int expireTime;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,9 @@ public Optional<Member> findMemberByEmail(String email) {
public void registerMember(Member member) {
memberRepository.saveAndFlush(member);
}

public Long getMemberId(String email) {
Member member = memberRepository.findByEmail(email).get();
return member.getId();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,9 @@ public void modifyMemberInfo(String deliveryName, String phoneNumber) {
this.deliveryName = deliveryName;
this.phoneNumber = phoneNumber;
}

public void modifyMemberInfo(String deliveryName, String phoneNumber) {
this.deliveryName = deliveryName;
this.phoneNumber = phoneNumber;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@

import com.ordertogether.team14_be.spot.enums.ErrorCode;


// @Getter
public record ErrorResponse(String message, ErrorCode code) {}

0 comments on commit ee7be5c

Please sign in to comment.