Skip to content

Commit

Permalink
Fix: 활동 상세
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeongho427 committed May 23, 2024
1 parent 97dda5f commit 7011b44
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ public class ActivityService {

//특정 활동 상제 정보 response dto화
public ActivityDetailsRes getActivityDetails(Long activityId) {
Long userId = SecurityContextProvider.getAuthenticatedUserId();
User user = userRepository.findById(userId)
.orElseThrow(() -> new CustomException(ExceptionContent.NOT_FOUND_USER));

Activity activity = findActivityById(activityId);
return ActivityDetailsRes.of(activity);
}
Expand Down

0 comments on commit 7011b44

Please sign in to comment.