Skip to content

Commit

Permalink
hotfix(ThumbsService): remove transaction propagation option
Browse files Browse the repository at this point in the history
  • Loading branch information
jcw1031 committed Apr 1, 2024
1 parent 0de22a6 commit 7869e94
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/ac/knu/likeknu/service/ThumbsService.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import ac.knu.likeknu.repository.MenuThumbsRepository;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
Expand All @@ -35,7 +34,7 @@ public ThumbsService(MenuThumbsRepository menuThumbsRepository, DeviceRepository
this.menuRepository = menuRepository;
}

@Transactional(readOnly = true, propagation = Propagation.REQUIRES_NEW)
@Transactional(readOnly = true)
public MenuThumbsStatusResponse getMenuThumbsStatus(String menuId, String deviceId) {
Device device = deviceRepository.findById(deviceId)
.orElseThrow(() -> new BusinessException(String.format("device does not exist [%s]", deviceId)));
Expand Down

0 comments on commit 7869e94

Please sign in to comment.