diff --git a/api-repo/src/main/kotlin/com/few/api/repo/dao/article/ArticleDao.kt b/api-repo/src/main/kotlin/com/few/api/repo/dao/article/ArticleDao.kt index 881e98246..9fdb56e20 100644 --- a/api-repo/src/main/kotlin/com/few/api/repo/dao/article/ArticleDao.kt +++ b/api-repo/src/main/kotlin/com/few/api/repo/dao/article/ArticleDao.kt @@ -135,8 +135,8 @@ class ArticleDao( suspend fun selectArticleContentsAsync(articleId: Long): SelectArticleContentsRecord = dslContext .select( - ArticleIfo.ARTICLE_IFO.ARTICLE_MST_ID.`as`(SelectArticleContentsRecord::articleId.name), - ArticleIfo.ARTICLE_IFO.CONTENT.`as`(SelectArticleContentsRecord::content.name) + ArticleIfo.ARTICLE_IFO.ARTICLE_MST_ID.`as`(SelectArticleContentsRecord::articleId.name) +// ArticleIfo.ARTICLE_IFO.CONTENT.`as`(SelectArticleContentsRecord::content.name) ).from(ArticleIfo.ARTICLE_IFO) .where(ArticleIfo.ARTICLE_IFO.ARTICLE_MST_ID.eq(articleId)) .and(ArticleIfo.ARTICLE_IFO.DELETED_AT.isNull) diff --git a/api-repo/src/main/kotlin/com/few/api/repo/dao/article/record/SelectArticleContentsRecord.kt b/api-repo/src/main/kotlin/com/few/api/repo/dao/article/record/SelectArticleContentsRecord.kt index 1b649fe95..b40b13f81 100644 --- a/api-repo/src/main/kotlin/com/few/api/repo/dao/article/record/SelectArticleContentsRecord.kt +++ b/api-repo/src/main/kotlin/com/few/api/repo/dao/article/record/SelectArticleContentsRecord.kt @@ -2,5 +2,6 @@ package com.few.api.repo.dao.article.record data class SelectArticleContentsRecord( val articleId: Long, - val content: String, -) \ No newline at end of file +) { + val content: String = "" +} \ No newline at end of file