From 022e344feadfcc40ca5be4e8e8fb0ae45171cd34 Mon Sep 17 00:00:00 2001 From: jini Date: Fri, 31 Mar 2023 01:36:10 +0900 Subject: [PATCH] =?UTF-8?q?:bug:=20=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EB=93=B1=EB=A1=9D=EC=8B=9C=20id=EA=B0=80=20=EB=B9=88=EB=AC=B8?= =?UTF-8?q?=EC=9E=90=EC=97=B4=EB=A1=9C=20=EB=93=B1=EB=A1=9D=EB=90=98?= =?UTF-8?q?=EB=8A=94=20bug=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jiniworld/demohx/persistence/notice/NoticeDocument.kt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/infrastructure/datastore-mongodb-reactive/src/main/kotlin/me/jiniworld/demohx/persistence/notice/NoticeDocument.kt b/infrastructure/datastore-mongodb-reactive/src/main/kotlin/me/jiniworld/demohx/persistence/notice/NoticeDocument.kt index 84630df..2366a48 100644 --- a/infrastructure/datastore-mongodb-reactive/src/main/kotlin/me/jiniworld/demohx/persistence/notice/NoticeDocument.kt +++ b/infrastructure/datastore-mongodb-reactive/src/main/kotlin/me/jiniworld/demohx/persistence/notice/NoticeDocument.kt @@ -7,13 +7,9 @@ import org.springframework.data.mongodb.core.mapping.Document import java.time.LocalDateTime @Document(value = "notice") -internal class NoticeDocument { +internal class NoticeDocument(var title: String, var content: String) { @Id - var id: String = "" - - var title: String = "" - - var content: String = "" + var id: String? = null @CreatedDate var createdAt: LocalDateTime = LocalDateTime.now()