Skip to content

Commit

Permalink
refactor: problemData -> problems
Browse files Browse the repository at this point in the history
  • Loading branch information
belljun3395 committed Jul 8, 2024
1 parent ca5ac3d commit b689823
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ data class AddArticleUseCaseIn(
/** Article IFO */
val contentType: String,
val contentSource: String,
val problemData: List<ProblemDetail>
val problems: List<ProblemDetail>

)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class AddArticleUseCase(
).let { articleDao.insertFullArticleRecord(it) }

/** insert problems */
useCaseIn.problemData.stream().map { problemDatum ->
useCaseIn.problems.stream().map { problemDatum ->
InsertProblemsCommand(
articleId = articleMstId,
createrId = 0L, // todo fix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class AdminController(
category = request.category,
contentType = request.contentType,
contentSource = request.contentSource,
problemData = request.problemData.map { datum ->
problems = request.problemData.map { datum ->
ProblemDetail(
title = datum.title,
contents = datum.contents.map { detail ->
Expand Down

0 comments on commit b689823

Please sign in to comment.