diff --git a/src/main/kotlin/gogo/gogostage/domain/community/root/application/CommunityProcessor.kt b/src/main/kotlin/gogo/gogostage/domain/community/root/application/CommunityProcessor.kt index 591d079..57adaaf 100644 --- a/src/main/kotlin/gogo/gogostage/domain/community/root/application/CommunityProcessor.kt +++ b/src/main/kotlin/gogo/gogostage/domain/community/root/application/CommunityProcessor.kt @@ -141,10 +141,10 @@ class CommunityProcessor( fun saveBoardView(event: BoardViewEvent) { val board = boardReader.read(event.boardId) - if (!boardViewRepository.existsByBoardIdAndStudentId(board.id, board.studentId)) { + if (!boardViewRepository.existsByBoardIdAndStudentId(board.id, event.studentId)) { val newBoardView = BoardView( board = board, - studentId = board.studentId, + studentId = event.studentId, ) boardViewRepository.save(newBoardView)