Skip to content

Commit

Permalink
Fix updated date not changing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dan-zx committed Mar 31, 2020
1 parent e7b63de commit 76a8f3d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun Comment.toCommentJpaEntity(post: PostJpaEntity, user: UserJpaEntity, parentC
id = id.orAutoGeneratedId(),
content = content,
created = created,
updated = created,
updated = updated,
post = post,
user = user,
parentComment = parentComment
Expand All @@ -20,7 +20,7 @@ fun CommentJpaEntity.toComment(votes: Long) = Comment(
id = id!!,
content = content,
created = created,
updated = created,
updated = updated,
votes = votes,
postId = post.id!!,
parentId = parentComment?.id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun Post.toPostJpaEntity(user: UserJpaEntity) = PostJpaEntity(
title = title,
content = content,
created = created,
updated = created,
updated = updated,
user = user
)

Expand Down

0 comments on commit 76a8f3d

Please sign in to comment.