From 36dd4174c3ff6aa51bdc55c2239bb8d8fb988ae5 Mon Sep 17 00:00:00 2001 From: songsunkook Date: Tue, 26 Nov 2024 19:57:54 +0900 Subject: [PATCH] =?UTF-8?q?remove:=20=EC=8B=A4=ED=97=98=EA=B5=B0=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=8B=9C=20=EB=A7=88=EC=A7=80=EB=A7=89=20?= =?UTF-8?q?=EC=A0=91=EC=86=8D=20=EC=8B=9C=EA=B0=81=20=EC=97=85=EB=8D=B0?= =?UTF-8?q?=EC=9D=B4=ED=8A=B8=20=EB=A1=9C=EC=A7=81=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../in/koreatech/koin/admin/abtest/model/AccessHistory.java | 1 + .../in/koreatech/koin/admin/abtest/service/AbtestService.java | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/in/koreatech/koin/admin/abtest/model/AccessHistory.java b/src/main/java/in/koreatech/koin/admin/abtest/model/AccessHistory.java index 4f5fb38d1..232487dcc 100644 --- a/src/main/java/in/koreatech/koin/admin/abtest/model/AccessHistory.java +++ b/src/main/java/in/koreatech/koin/admin/abtest/model/AccessHistory.java @@ -111,6 +111,7 @@ public void removeVariable(AbtestVariable variable) { ); } + // TODO: 각 로그인 및 리프레시 요청에 추가 필요 public void updateLastAccessedAt(Clock clock) { this.lastAccessedAt = LocalDateTime.now(clock); } diff --git a/src/main/java/in/koreatech/koin/admin/abtest/service/AbtestService.java b/src/main/java/in/koreatech/koin/admin/abtest/service/AbtestService.java index 3b729c0f9..f68401219 100644 --- a/src/main/java/in/koreatech/koin/admin/abtest/service/AbtestService.java +++ b/src/main/java/in/koreatech/koin/admin/abtest/service/AbtestService.java @@ -1,6 +1,5 @@ package in.koreatech.koin.admin.abtest.service; -import java.time.Clock; import java.util.List; import java.util.Objects; import java.util.Optional; @@ -51,7 +50,6 @@ @Transactional(readOnly = true) public class AbtestService { - private final Clock clock; private final EntityManager entityManager; private final AbtestVariableCountRepository abtestVariableCountRepository; private final AbtestRepository abtestRepository; @@ -161,7 +159,6 @@ public AbtestAssignResponse assignOrGetVariable(Integer accessHistoryId, UserAge accessHistory.addAbtestVariable(variable); countCacheUpdate(variable); variableAssignCacheSave(variable, accessHistory.getId()); - accessHistory.updateLastAccessedAt(clock); return AbtestAssignResponse.of(variable, accessHistory); } @@ -217,7 +214,6 @@ private AbtestVariable getMyVariable(Integer accessHistoryId, UserAgentInfo user abtestVariableAssignRepository.save(AbtestVariableAssign.of(dbVariable.getId(), accessHistory.getId())); return dbVariable; } - accessHistory.updateLastAccessedAt(clock); return cacheVariable.get(); }