diff --git a/src/main/java/it/numble/hittracker/service/HitTrackerService.java b/src/main/java/it/numble/hittracker/service/HitTrackerService.java index bb9a90a..28e3b68 100644 --- a/src/main/java/it/numble/hittracker/service/HitTrackerService.java +++ b/src/main/java/it/numble/hittracker/service/HitTrackerService.java @@ -39,6 +39,10 @@ public UrlHitInfoDto getHitInfo(String url) { @Async public void hit(String url) { hitRepository.hit(url); + + if (!isExistsUrl(url)) { + track(url); + } } public List getStatistics(String url) {