Skip to content

Commit

Permalink
fix: non-null 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dldmsql committed Nov 4, 2024
1 parent fc36d77 commit 9730829
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ data class BoardCreateRequest(
@field:Schema(description = "작성자 아이디", example = "null", required = false)
var userId: Long? = null,
@field:Schema(description = "보드 옵션 - key 값으로 THEMA를 주세요. value로는 프론트에서 지정한 숫자 혹은 식별값을 주세요.", example = "{\"THEMA\":\"value3\"}")
val options : Map<ExtraOption, String>
val options : Map<ExtraOption, String>?
)
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class BoardJooqRepositoryImpl(
this.yn = 1
this.activeyn = 1
this.userId = request.userId
this.options = request.options.let { ObjectMapper().writeValueAsString(it) }
this.options = request.options?.let { ObjectMapper().writeValueAsString(it) }
}
val result = this.dslContext.insertInto(jBoard)
.set(insertValue)
Expand Down

0 comments on commit 9730829

Please sign in to comment.