fix: 포인트 정책 등록 - request에 활성화 여부 제거

This commit is contained in:
Klaus 2025-04-23 14:57:33 +09:00
parent 58d066af0a
commit cb7917dc26
1 changed files with 2 additions and 3 deletions

View File

@ -12,8 +12,7 @@ data class CreatePointRewardPolicyRequest(
val threshold: Int, val threshold: Int,
val pointAmount: Int, val pointAmount: Int,
val startDate: String, val startDate: String,
val endDate: String, val endDate: String
val isActive: Boolean
) { ) {
fun toEntity(): PointRewardPolicy { fun toEntity(): PointRewardPolicy {
val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm") val dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm")
@ -31,7 +30,7 @@ data class CreatePointRewardPolicyRequest(
.atZone(ZoneId.of("Asia/Seoul")) .atZone(ZoneId.of("Asia/Seoul"))
.withZoneSameInstant(ZoneId.of("UTC")) .withZoneSameInstant(ZoneId.of("UTC"))
.toLocalDateTime(), .toLocalDateTime(),
isActive = isActive isActive = true
) )
} }
} }