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;