Skip to content

Commit

Permalink
fix: BaseEntity 상속 후 createAt 필드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
koreaioi committed Oct 6, 2024
1 parent 8a9d1ba commit a730785
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/main/java/com/leets/X/domain/chat/entity/ChatMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,11 @@ public class ChatMessage extends BaseTimeEntity {

private String content;

// 메시지는 수정할 수 X -> BaseEntity 상속 X
private LocalDateTime createdAt;

public static ChatMessage of(PublishMessage publishMessage) {
return ChatMessage.builder()
.roomId(publishMessage.getRoomId())
.senderId(publishMessage.getSenderId())
.content(publishMessage.getContent())
.createdAt(LocalDateTime.now())
.build();
}

Expand Down

0 comments on commit a730785

Please sign in to comment.