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(); }