Skip to content

Commit

Permalink
Merge pull request #52 from UMC-HACKATHON-SnapSpot/revert-48-fix/#47
Browse files Browse the repository at this point in the history
Revert "[fix] repository 생성자 주입"
  • Loading branch information
wonjun0120 authored Jul 5, 2024
2 parents f505efc + 9d502b0 commit 112c55a
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,15 @@
import com.umc.hackaton.snapspot.spot.repository.SpotRepository;
import com.umc.hackaton.snapspot.user.entity.User;
import com.umc.hackaton.snapspot.user.repository.UserRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@RequiredArgsConstructor
public class MypageService {

private final SpotRepository spotRepository;
private final UserRepository userRepository;
private SpotRepository spotRepository;
private UserRepository userRepository;

public List<MypageDto.MySptDto> readAllMySpot(Long userId) {
User user = userRepository.findById(userId).orElseThrow(()-> new IllegalArgumentException("존재하지 않는 사용자입니다."));
Expand Down

0 comments on commit 112c55a

Please sign in to comment.