fix: 포인트 정책 등록 - request에 활성화 여부 제거
This commit is contained in:
parent
58d066af0a
commit
cb7917dc26
|
@ -12,8 +12,7 @@ data class CreatePointRewardPolicyRequest(
|
|||
val threshold: Int,
|
||||
val pointAmount: Int,
|
||||
val startDate: String,
|
||||
val endDate: String,
|
||||
val isActive: Boolean
|
||||
val endDate: String
|
||||
) {
|
||||
fun toEntity(): PointRewardPolicy {
|
||||
val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
|
||||
|
@ -31,7 +30,7 @@ data class CreatePointRewardPolicyRequest(
|
|||
.atZone(ZoneId.of("Asia/Seoul"))
|
||||
.withZoneSameInstant(ZoneId.of("UTC"))
|
||||
.toLocalDateTime(),
|
||||
isActive = isActive
|
||||
isActive = true
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue