Skip to content

Commit 9538b84

Browse files
committed
[MOD] #293 코스 생성 시 path - null 대체값 설정
1 parent b06374a commit 9538b84

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333
versionName "1.0.4"
3434

3535
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
36-
buildConfigField "String", "RUNNECT_BASE_URL", properties["RUNNECT_BASE_URL"]
36+
buildConfigField "String", "RUNNECT_BASE_URL", properties["RUNNECT_DEV_URL"]
3737
buildConfigField "String", "TMAP_BASE_URL", properties["TMAP_BASE_URL"]
3838
buildConfigField "String", "TMAP_API_KEY", properties["TMAP_API_KEY"]
3939
buildConfigField "String", "NAVER_CLIENT_ID", properties["NAVER_CLIENT_ID"]

app/src/main/java/com/runnect/runnect/presentation/draw/DrawViewModel.kt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import androidx.lifecycle.viewModelScope
88
import com.runnect.runnect.data.dto.LocationData
99
import com.runnect.runnect.data.dto.SearchResultEntity
1010
import com.runnect.runnect.data.dto.UploadLatLng
11-
import com.runnect.runnect.data.dto.response.ResponsePostCourseDTO
11+
import com.runnect.runnect.data.dto.response.ResponsePostMyDrawCourse
1212
import com.runnect.runnect.domain.CourseRepository
1313
import com.runnect.runnect.domain.ReverseGeocodingRepository
1414
import com.runnect.runnect.presentation.state.UiState
@@ -50,7 +50,7 @@ class DrawViewModel @Inject constructor(
5050
_image.value = requestBody
5151
}
5252

53-
val uploadResult = MutableLiveData<ResponsePostCourseDTO>()
53+
val uploadResult = MutableLiveData<ResponsePostMyDrawCourse>()
5454
val errorMessage = MutableLiveData<String>()
5555

5656

@@ -92,7 +92,12 @@ class DrawViewModel @Inject constructor(
9292
courseRepository.uploadCourse(
9393
image = _image.value!!.toFormData(),
9494
courseCreateRequestDto = CourseCreateRequestDto(
95-
path = path.value!!,
95+
path = path.value ?: listOf(
96+
UploadLatLng(
97+
37.52901832956373,
98+
126.9136196847032
99+
)
100+
),
96101
title = courseTitle,
97102
distance = distanceSum.value!!,
98103
departureAddress = departureAddress.value!!, //커스텀의 경우 지금 여기에 들어가는 게 아무것도 없음.

0 commit comments

Comments
 (0)