fix: 포인트 정책 생성 - endDate가 빈칸이면 null 처리
This commit is contained in:
@@ -26,10 +26,14 @@ data class CreatePointRewardPolicyRequest(
|
|||||||
.atZone(ZoneId.of("Asia/Seoul"))
|
.atZone(ZoneId.of("Asia/Seoul"))
|
||||||
.withZoneSameInstant(ZoneId.of("UTC"))
|
.withZoneSameInstant(ZoneId.of("UTC"))
|
||||||
.toLocalDateTime(),
|
.toLocalDateTime(),
|
||||||
endDate = LocalDateTime.parse(endDate, dateTimeFormatter).withSecond(59)
|
endDate = if (endDate.isNotBlank()) {
|
||||||
.atZone(ZoneId.of("Asia/Seoul"))
|
LocalDateTime.parse(endDate, dateTimeFormatter).withSecond(59)
|
||||||
.withZoneSameInstant(ZoneId.of("UTC"))
|
.atZone(ZoneId.of("Asia/Seoul"))
|
||||||
.toLocalDateTime(),
|
.withZoneSameInstant(ZoneId.of("UTC"))
|
||||||
|
.toLocalDateTime()
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
},
|
||||||
isActive = true
|
isActive = true
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user