Skip to content

Commit

Permalink
🔨 fix: fix creating answerDto if null #63
Browse files Browse the repository at this point in the history
  • Loading branch information
noparamin committed Nov 18, 2023
1 parent cf703c1 commit 85ae4f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/smart/watchboard/service/SseService.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private void sendSummary(Long documentId, String path) {
private void sendAnswer(Long documentId, String keyword) {
AnswerDto answerDto = questionService.getAnswer(documentId, keyword);
if (answerDto == null) {
answerDto.setText("processing");
answerDto = new AnswerDto("processing");
ResponseEntity<AnswerDto> temp = new ResponseEntity<>(answerDto, HttpStatus.OK);
questionService.createAnswer(documentId, keyword, temp);
}
Expand Down

0 comments on commit 85ae4f2

Please sign in to comment.