Skip to content

Commit cad2885

Browse files
committed
fix : createCocktailComment
1 parent 3b10cc8 commit cad2885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/back/domain/cocktail/comment/service/CocktailCommentService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public CocktailCommentResponseDto createCocktailComment(Long cocktailId, Cocktai
4747
.cocktail(cocktail)
4848
.user(user)
4949
.content(reqBody.content())
50-
.status(reqBody.status())
50+
.status(reqBody.status() != null ? reqBody.status() : CommentStatus.PUBLIC)
5151
.build();
5252

5353
return new CocktailCommentResponseDto(cocktailCommentRepository.save(cocktailComment));

0 commit comments

Comments
 (0)