fix: hotfix 동기화 — history/detail candidate_count 안전 처리 #225

병합
htlee hotfix/sync-candidate-count 에서 develop 로 69 commits 를 머지했습니다 2026-04-04 11:05:43 +09:00
2개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
Showing only changes of commit 3967d77d65 - Show all commits

파일 보기

@ -118,8 +118,7 @@ public class OsintCollector {
if (articleUrl == null || title == null || title.isBlank()) continue;
if (osintFeedRepository.existsBySourceAndSourceUrl("gdelt", articleUrl)) continue;
if (osintFeedRepository.existsByRegionAndTitleAndCollectedAtAfter(
region, title, Instant.now().minus(24, ChronoUnit.HOURS))) continue;
if (osintFeedRepository.existsByTitle(title)) continue;
String seendate = article.path("seendate").asText(null);
Instant publishedAt = parseGdeltDate(seendate);
@ -184,8 +183,7 @@ public class OsintCollector {
if (link == null || title == null || title.isBlank()) continue;
if (osintFeedRepository.existsBySourceAndSourceUrl(sourceName, link)) continue;
if (osintFeedRepository.existsByRegionAndTitleAndCollectedAtAfter(
region, title, Instant.now().minus(24, ChronoUnit.HOURS))) continue;
if (osintFeedRepository.existsByTitle(title)) continue;
Instant publishedAt = parseRssDate(pubDate);

파일 보기

@ -9,7 +9,7 @@ public interface OsintFeedRepository extends JpaRepository<OsintFeed, Long> {
boolean existsBySourceAndSourceUrl(String source, String sourceUrl);
boolean existsByRegionAndTitleAndCollectedAtAfter(String region, String title, Instant since);
boolean existsByTitle(String title);
List<OsintFeed> findByRegionAndCollectedAtAfterOrderByPublishedAtDesc(String region, Instant since);
}