Skip to content

Commit

Permalink
[MOD] #293 코스 생성 시 path - null 대체값 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
unam98 committed Dec 18, 2023
1 parent b06374a commit 9538b84
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ android {
versionName "1.0.4"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "String", "RUNNECT_BASE_URL", properties["RUNNECT_BASE_URL"]
buildConfigField "String", "RUNNECT_BASE_URL", properties["RUNNECT_DEV_URL"]
buildConfigField "String", "TMAP_BASE_URL", properties["TMAP_BASE_URL"]
buildConfigField "String", "TMAP_API_KEY", properties["TMAP_API_KEY"]
buildConfigField "String", "NAVER_CLIENT_ID", properties["NAVER_CLIENT_ID"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import androidx.lifecycle.viewModelScope
import com.runnect.runnect.data.dto.LocationData
import com.runnect.runnect.data.dto.SearchResultEntity
import com.runnect.runnect.data.dto.UploadLatLng
import com.runnect.runnect.data.dto.response.ResponsePostCourseDTO
import com.runnect.runnect.data.dto.response.ResponsePostMyDrawCourse
import com.runnect.runnect.domain.CourseRepository
import com.runnect.runnect.domain.ReverseGeocodingRepository
import com.runnect.runnect.presentation.state.UiState
Expand Down Expand Up @@ -50,7 +50,7 @@ class DrawViewModel @Inject constructor(
_image.value = requestBody
}

val uploadResult = MutableLiveData<ResponsePostCourseDTO>()
val uploadResult = MutableLiveData<ResponsePostMyDrawCourse>()
val errorMessage = MutableLiveData<String>()


Expand Down Expand Up @@ -92,7 +92,12 @@ class DrawViewModel @Inject constructor(
courseRepository.uploadCourse(
image = _image.value!!.toFormData(),
courseCreateRequestDto = CourseCreateRequestDto(
path = path.value!!,
path = path.value ?: listOf(
UploadLatLng(
37.52901832956373,
126.9136196847032
)
),
title = courseTitle,
distance = distanceSum.value!!,
departureAddress = departureAddress.value!!, //커스텀의 경우 지금 여기에 들어가는 게 아무것도 없음.
Expand Down

0 comments on commit 9538b84

Please sign in to comment.