Skip to content

Commit

Permalink
refactor: 전파 없애기
Browse files Browse the repository at this point in the history
  • Loading branch information
minsang-alt committed Nov 18, 2024
1 parent 8fb0fe6 commit ea0bd98
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import dynamicquad.agilehub.issue.repository.ProjectIssueSequenceRepository;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
Expand All @@ -13,7 +12,7 @@ public class IssueNumberGenerator {

private final ProjectIssueSequenceRepository issueSequenceRepository;

@Transactional(propagation = Propagation.REQUIRES_NEW)
@Transactional
public String generate(String projectKey) {
ProjectIssueSequence sequence = issueSequenceRepository.findByProjectKey(projectKey)
.orElseThrow(() -> new IllegalArgumentException("ProjectIssueSequence not found"));
Expand Down

0 comments on commit ea0bd98

Please sign in to comment.