Skip to content

Commit 8e9499f

Browse files
committed
fix: distributed lock's key is null due to changing parameter type
1 parent 1628a21 commit 8e9499f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pennyway-domain/domain-service/src/main/java/kr/co/pennyway/domain/context/chat/service/ChatRoomAdminDelegateService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class ChatRoomAdminDelegateService {
1919
private final ChatMemberRdbService chatMemberRdbService;
2020

2121
@Transactional
22-
@DistributedLock(key = "'chat-room-admin-delegate-' + #chatRoomId")
22+
@DistributedLock(key = "'chat-room-admin-delegate-' + #command.chatRoomId()")
2323
public void execute(ChatRoomAdminDelegateCommand command) {
2424
var chatAdmin = chatMemberRdbService.readChatMember(command.chatAdminUserId(), command.chatRoomId())
2525
.filter(ChatMember::isActive)

0 commit comments

Comments
 (0)