Skip to content

Commit

Permalink
🐛 Fix editComment
Browse files Browse the repository at this point in the history
  • Loading branch information
alpakar02 authored Feb 1, 2025
1 parent 45dafc9 commit dd39315
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,8 @@ class CommentService(
if (comment.user.id != user.id) {
throw CommentWriterDoesNotMatchException()
}
comment.feed.content = request.content
comment.content = request.content
comment.updatedAt = Instant.now()
commentRepository.save(comment)
feedService.saveCommentInFeed(comment.feed, comment)
return Comment.fromEntity(comment)
}
Expand Down

0 comments on commit dd39315

Please sign in to comment.