Skip to content

Commit e5a59cd

Browse files
authored
Merge pull request #42 from DDD-Community/feature/POLABO-130
fix: non-null 수정
2 parents 87770f2 + 9730829 commit e5a59cd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/com/ddd/sonnypolabobe/domain/board/controller/dto/BoardCreateRequest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ data class BoardCreateRequest(
1313
@field:Schema(description = "작성자 아이디", example = "null", required = false)
1414
var userId: Long? = null,
1515
@field:Schema(description = "보드 옵션 - key 값으로 THEMA를 주세요. value로는 프론트에서 지정한 숫자 혹은 식별값을 주세요.", example = "{\"THEMA\":\"value3\"}")
16-
val options : Map<ExtraOption, String>
16+
val options : Map<ExtraOption, String>?
1717
)

src/main/kotlin/com/ddd/sonnypolabobe/domain/board/repository/BoardJooqRepositoryImpl.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class BoardJooqRepositoryImpl(
3636
this.yn = 1
3737
this.activeyn = 1
3838
this.userId = request.userId
39-
this.options = request.options.let { ObjectMapper().writeValueAsString(it) }
39+
this.options = request.options?.let { ObjectMapper().writeValueAsString(it) }
4040
}
4141
val result = this.dslContext.insertInto(jBoard)
4242
.set(insertValue)

0 commit comments

Comments
 (0)