Skip to content

Commit

Permalink
refactor(#105): 서비스 로직 트랜잭션 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
jusung-c committed Nov 19, 2023
1 parent 3689e72 commit 09b0e11
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ public void deleteHouseworkInfo(HouseworkInfoDeleteRequest request) {
}
}

@Transactional(readOnly = false)
public HouseworkInfoUpdatePageResponse updateHouseworkPage(Long todoId) {
// HouseworkTodo 조회 -> HouseworkInfo도 fetch Join 함께 조회
HouseworkTodo requestTodo = houseworkTodoRepository.findHouseworkTodoByIdJoinFetchHouseworkInfo(todoId).orElseThrow(() -> {
Expand All @@ -179,6 +180,7 @@ public HouseworkInfoUpdatePageResponse updateHouseworkPage(Long todoId) {
}
}

@Transactional(readOnly = false)
public void updateHousework(HouseworkInfoUpdateServiceRequest request) {
Long groupId = request.getGroupId();
Long todoId = request.getTodoId();
Expand Down

0 comments on commit 09b0e11

Please sign in to comment.