-
Notifications
You must be signed in to change notification settings - Fork 0
[community] 게시글 / 댓글 욕설 필터 이벤트 send와 이벤트 컨슈머 생성 #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[community] 게시글 / 댓글 욕설 필터 이벤트 send와 이벤트 컨슈머 생성 #156
Conversation
| communityProcessor.boardFilteredTrue(event.boardId) | ||
|
|
||
| } catch (e: Exception) { | ||
| log.error("Failed to Batch Addition Temp Point, Batch Id = ${event.id}", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
에러 메시지 변경 부탁드립니다
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2d4d320
변경하였습니다
| communityProcessor.commentFilteredTrue(event.commentId) | ||
|
|
||
| } catch (e: Exception) { | ||
| log.error("Failed to Batch Addition Temp Point, Batch Id = ${event.id}", e) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기도요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2d4d320
변경하였습니다
| fun boardFilteredTrue(boardId: Long) { | ||
| val board = boardRepository.findByIdOrNull(boardId) | ||
| ?: throw StageException("Board not found, boardId=${boardId}", HttpStatus.NOT_FOUND.value()) | ||
|
|
||
| board.changeBoardFilter() | ||
|
|
||
| boardRepository.save(board) | ||
| } | ||
|
|
||
| fun commentFilteredTrue(commentId: Long) { | ||
| val comment = commentRepository.findByIdOrNull(commentId) | ||
| ?: throw StageException("Comment not found, commentId=${commentId}", HttpStatus.NOT_FOUND.value()) | ||
|
|
||
| comment.changeIsFiltered() | ||
|
|
||
| commentRepository.save(comment) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
트랜잭셔널 붙혀주세요
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e8ae063
트랜잭셔널 적용하였습니다
vumrra
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨어요
개요
게시글/댓글 욕설 필터를 위해 이벤트를 send하는 것과 검증되어 true라면 오는 이벤트를 컨슘하는 것을 만들었습니다.
본문