Skip to content

Commit

Permalink
hotfix: fix incorrect assignment of recruitStatus in ExperimentPost c…
Browse files Browse the repository at this point in the history
…reation
  • Loading branch information
Ji-soo708 committed Jan 19, 2025
1 parent fee3f17 commit fe834ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ class CreateExperimentPostUseCase(
detailedAddress = input.detailedAddress,
alarmAgree = input.alarmAgree,
images = emptyList(), // 이미지 업로드 보류
recruitStatus = true,
createdAt = LocalDateTime.now(),
updatedAt = LocalDateTime.now()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ data class ExperimentPost(
val area: Area,
val detailedAddress: String?,
val alarmAgree: Boolean,
val recruitStatus: Boolean = true,
val recruitStatus: Boolean,
val images: List<ExperimentImage>,
var createdAt: LocalDateTime,
var updatedAt: LocalDateTime
Expand Down Expand Up @@ -83,7 +83,7 @@ data class ExperimentPost(
area = area,
detailedAddress = detailedAddress,
alarmAgree = alarmAgree,
recruitStatus = true,
recruitStatus = recruitStatus,
images = images,
createdAt = createdAt,
updatedAt = updatedAt
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.dobby.backend.infrastructure.converter

import com.dobby.backend.domain.model.experiment.ExperimentImage
import com.dobby.backend.domain.model.experiment.ExperimentPost
import com.dobby.backend.infrastructure.database.entity.experiment.ApplyMethodEntity
import com.dobby.backend.infrastructure.database.entity.experiment.ExperimentPostEntity
Expand Down Expand Up @@ -31,6 +30,7 @@ object ExperimentPostConverter{
matchType = entity.matchType,
targetGroup = entity.targetGroup.toDomain(),
images = emptyList(), // 이미지 업로드 부분 보류,
recruitStatus = entity.recruitStatus,
createdAt = entity.createdAt,
updatedAt = entity.updatedAt
)
Expand Down

0 comments on commit fe834ab

Please sign in to comment.