Skip to content

Commit

Permalink
refactor: Modify request format (#56)
Browse files Browse the repository at this point in the history
Co-authored-by: Ahyun0326 <[email protected]>
  • Loading branch information
chaeeun-Han and Ahyun0326 committed Apr 4, 2024
1 parent 9d69b5b commit ec61bf8
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
@Getter
public class CommentsRequestDto {
private String content;
private Long userUid;

public Comments toEntity(Long postId) {
public Comments toEntity(Long postId, Long userUid) {
Date now = Date.from(Instant.now());
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String writeDatetime = simpleDateFormat.format(now);
Expand Down

0 comments on commit ec61bf8

Please sign in to comment.