Skip to content

Commit

Permalink
[fix] : 마이페이지 댓글 반환시 댓글 ID 반환수정
Browse files Browse the repository at this point in the history
  • Loading branch information
evergreenn committed Apr 6, 2024
1 parent af5f4bb commit cbff7e9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
public record CommentListResponseDto(
String spotName,
Long spotId,
Long commentId,

String usersComment,
String review,
LocalDateTime CommentcreateDate,
Expand All @@ -29,6 +31,7 @@ public static CommentListResponseDto of (Comment comment, PageInfo pageInfo){
return CommentListResponseDto.builder()
.spotName(comment.getSpot().getSpotName())
.spotImageurl(comment.getSpot().getImageUrls().get(0))
.commentId(comment.getId())
.CommentcreateDate(comment.getCreatedDate())
.spotId(comment.getId())
.review(comment.getSpot().getReview())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ public String findPassword(String userId, String email) {

String newPassword = generateNewPassword();
member.setPassword(bCryptPasswordEncoder.encode(newPassword));

member.setNoCryptpassword(newPassword);
userRepository.save(member);

Expand Down Expand Up @@ -178,6 +179,7 @@ public void checkPassword(String enteredPassword) {
.map(User::getPassword)
.orElseThrow(() -> new UserNotFoundException(HttpExceptionCode.USER_NOT_FOUND));


if( ! bCryptPasswordEncoder.matches(enteredPassword, storedPassword)){
throw new PasswordNotMatchException();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spring:
show_sql: true
format_sql: true
database: mysql
show-sql: true
show-sql: false
hibernate:
ddl-auto: update
jwt:
Expand Down

0 comments on commit cbff7e9

Please sign in to comment.