Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] 데이트 코스 좋아요 삭제 API 구현 - #68 #77

Merged
merged 6 commits into from
Jul 11, 2024

Conversation

gardening-y
Copy link
Contributor

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

데이트 코스 좋아요 삭제 API를 구현했습니다.

    @Transactional
    public void deleteCourseLike(Long userId, Long courseId) {
        User findUser = getUser(userId);
        Course findCourse = getCourse(courseId);
        Like findLike = getLike(findUser, findCourse);
        likeRepository.delete(findLike);
    }

User와 Course를 찾아서 그에 해당하는 좋아요가 존재하는 경우 해당 좋아요를 삭제하도록 구현했습니다.

🚨 참고 사항

📟 관련 이슈

Copy link
Member

@sjk4618 sjk4618 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM~

@gardening-y gardening-y merged commit b11adfd into develop Jul 11, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 데이트 코스 좋아요 삭제 API 구현
2 participants