Skip to content

Commit

Permalink
fix: Transactional 어노테이션 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin0o0 committed Dec 9, 2023
1 parent c389516 commit 77bd867
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ else if(learningMaterial.getIsPriority()){
return new ResponseEntity<HashMap>(response, HttpStatus.OK);
}

@Transactional
public ResponseEntity<HashMap> unsetPriority(Principal principal, Long id){
LearningMaterial learningMaterial = learningMaterialRepository.findById(id).orElseThrow();
HashMap<String, String> response = new HashMap<>();
Expand Down

0 comments on commit 77bd867

Please sign in to comment.