Skip to content

Commit

Permalink
refactor: save 호출하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Sangwook02 committed Aug 2, 2024
1 parent 60d880d commit bac85e6
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import static com.gdschongik.gdsc.global.exception.ErrorCode.*;

import com.gdschongik.gdsc.domain.member.domain.Member;
import com.gdschongik.gdsc.domain.study.dao.StudyDetailRepository;
import com.gdschongik.gdsc.domain.study.domain.StudyDetail;
import com.gdschongik.gdsc.domain.study.domain.StudyDetailValidator;
import com.gdschongik.gdsc.global.exception.CustomException;
import com.gdschongik.gdsc.global.util.MemberUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
Expand All @@ -30,6 +33,7 @@ public void cancelStudyAssignment(Long studyDetailId) {
studyDetailValidator.validateCancelStudyAssignment(currentMember, studyDetail);

studyDetail.cancelAssignment();
studyDetailRepository.save(studyDetail);

log.info("[StudyMentorService] 과제 휴강 처리: studyDetailId={}", studyDetail.getId());
}
Expand Down

0 comments on commit bac85e6

Please sign in to comment.