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 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
)
}
}