From fc6d2c7c6c7680c2dbbc0ea4dd25db7420c34b0c Mon Sep 17 00:00:00 2001 From: Jinhong Kim Date: Tue, 17 Oct 2023 21:08:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=A1=B0=ED=9A=8C=EC=88=98=20=ED=99=95?= =?UTF-8?q?=EC=9D=B8=EC=9D=80=20=ED=95=98=EC=A7=80=20=EC=95=8A=EA=B3=A0=20?= =?UTF-8?q?=EC=A6=9D=EA=B0=80=EB=A7=8C=20=ED=95=98=EB=A9=B4=20=EB=A7=A4?= =?UTF-8?q?=EC=9D=BC=20=EC=9E=90=EC=A0=95=20=EA=B8=B0=EB=A1=9D=EB=90=98?= =?UTF-8?q?=EC=A7=80=20=EC=95=8A=EB=8A=94=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/it/numble/hittracker/service/HitTrackerService.java | 4 ++++ 1 file changed, 4 insertions(+) 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) {