Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import com.stockport.server.global.feign.dto.KisStockPeriodPrice;
import jakarta.persistence.EntityManager;
import jakarta.persistence.PersistenceContext;
import jakarta.transaction.Transactional;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.domain.Page;
Expand Down Expand Up @@ -81,6 +82,7 @@ public void updateCurrentStockData() {
}

@Override
@Transactional
public void updatePeriodicStockData(LocalDate startDate, LocalDate endDate) {
List<Stock> stocks = stockRepository.findAll();
for (Stock stock : stocks) {
Expand All @@ -102,6 +104,7 @@ public void updatePeriodicStockData(LocalDate startDate, LocalDate endDate) {
}

@Override
@Transactional
public void updateHistoricalStockData() {
List<Stock> stocks = stockRepository.findAll();
LocalDate endDate = LocalDate.now();
Expand Down
Loading