From 0c10146effe7eb8721976cf172cb472e134f91f7 Mon Sep 17 00:00:00 2001 From: Sanghoon Jeong <67852689+wjdtkdgns@users.noreply.github.com> Date: Fri, 1 Sep 2023 15:52:16 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EC=B0=A8=EB=8B=A8=20=ED=92=80=EA=B8=B0?= =?UTF-8?q?=20usecase=20identifier=20=EC=9E=AC=EC=A0=95=EC=9D=98=20(#158)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [fix] 차단 풀기 usecase identifier 재정의 #157 * [chore] log 지우기 #157 --------- Co-authored-by: 정상훈 --- .../allchive/server/api/block/service/DeleteBlockUseCase.java | 2 +- .../domain/common/aop/distributedLock/DistributedLockAop.java | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Api/src/main/java/allchive/server/api/block/service/DeleteBlockUseCase.java b/Api/src/main/java/allchive/server/api/block/service/DeleteBlockUseCase.java index a8d741ed..65a1579c 100644 --- a/Api/src/main/java/allchive/server/api/block/service/DeleteBlockUseCase.java +++ b/Api/src/main/java/allchive/server/api/block/service/DeleteBlockUseCase.java @@ -25,7 +25,7 @@ public class DeleteBlockUseCase { @Transactional @DistributedLock( lockType = DistributedLockType.BLOCK, - identifier = {"fromUserId, toUserId"}) + identifier = {"fromUserId", "toUserId"}) public BlockResponse execute(BlockRequest request, Long fromUserId, Long toUserId) { Long userId = SecurityUtil.getCurrentUserId(); validateExecution(userId, request); diff --git a/Domain/src/main/java/allchive/server/domain/common/aop/distributedLock/DistributedLockAop.java b/Domain/src/main/java/allchive/server/domain/common/aop/distributedLock/DistributedLockAop.java index fc521f28..318294bd 100644 --- a/Domain/src/main/java/allchive/server/domain/common/aop/distributedLock/DistributedLockAop.java +++ b/Domain/src/main/java/allchive/server/domain/common/aop/distributedLock/DistributedLockAop.java @@ -9,7 +9,6 @@ import java.util.Arrays; import java.util.List; import lombok.RequiredArgsConstructor; -import lombok.extern.slf4j.Slf4j; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; @@ -22,7 +21,6 @@ @Component @Order(Ordered.HIGHEST_PRECEDENCE + 1) @RequiredArgsConstructor -@Slf4j public class DistributedLockAop { private final LockManager lockManager;