diff --git a/src/main/java/com/umc/networkingService/config/WebMvcConfig.java b/src/main/java/com/umc/networkingService/config/WebMvcConfig.java index ea01ec0b..ab836dbd 100644 --- a/src/main/java/com/umc/networkingService/config/WebMvcConfig.java +++ b/src/main/java/com/umc/networkingService/config/WebMvcConfig.java @@ -18,7 +18,7 @@ public void addInterceptors(InterceptorRegistry registry) { registry.addInterceptor(lastActiveInterceptor) .addPathPatterns("/**") // 모든 요청에 대해 인터셉터 적용 .excludePathPatterns("/v3/**", "/swagger-ui/**") // 스웨거 요청은 제외 - .excludePathPatterns("/members/login", "/members"); // 로그인 및 회원가입 API 제외 + .excludePathPatterns("/members/login", "/members", "/members/attend", "/invites/**"); // 로그인 및 회원가입 API 제외 } //cors 에러 해결 diff --git a/src/main/java/com/umc/networkingService/domain/member/service/MemberServiceImpl.java b/src/main/java/com/umc/networkingService/domain/member/service/MemberServiceImpl.java index b4d96e07..40205c52 100644 --- a/src/main/java/com/umc/networkingService/domain/member/service/MemberServiceImpl.java +++ b/src/main/java/com/umc/networkingService/domain/member/service/MemberServiceImpl.java @@ -150,9 +150,9 @@ public MemberSearchInfosResponse searchMemberInfo(Member loginMember, String key public MemberAttendResponse attendMember(Member loingMember) { Member member = loadEntity(loingMember.getId()); - LocalDate lastActiveDate = member.getLastActiveTime().toLocalDate(); + LocalDateTime lastActiveTime = member.getLastActiveTime(); - if (!lastActiveDate.equals(LocalDate.now())) { + if (lastActiveTime == null || !lastActiveTime.toLocalDate().equals(LocalDate.now())) { member.addRemainPoint(1L); return new MemberAttendResponse(true); }