Skip to content

Commit

Permalink
#3 feat : 프로필 보기 -> 나의 재치 현황 리스트(최신)
Browse files Browse the repository at this point in the history
  • Loading branch information
Suanna01 committed Mar 23, 2023
1 parent 0885fcb commit 28d6a1e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

@Slf4j
@RequiredArgsConstructor
@Component
//@Component
public class JwtAuthenticationFilter extends OncePerRequestFilter {
private final String AUTHORIZATION_PREFIX = "Bearer ";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public Long modifyNickname(Long userId, String newNickname) {
@Override
public List<Map<String, Object>> profile(Long userId) {
try {
String sql = "SELECT nickname from user WHERE user_id = ?";
String sql = "SELECT user.user_id, user.nickname, zatch.zatch_id FROM zatch.zatch LEFT JOIN zatch.user on zatch.user_id = user.user_id WHERE user.user_id = ? ORDER BY user.created_at DESC;";
Object[] params = {userId};
System.out.println("User's profile SQL select");
return jdbcTemplate.queryForList(sql, params);
} catch (Exception e){
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "User Email Not Found");
throw new ResponseStatusException(HttpStatus.INTERNAL_SERVER_ERROR, "User Profile Not Found");
}
}

Expand Down

0 comments on commit 28d6a1e

Please sign in to comment.