Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[hotfix] 코스 불러오기를 통한 코스 등록이 안 되는 문제 해결 #221

Merged
merged 3 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package org.sopt.dateroad.data.mapper.todata

import org.sopt.dateroad.data.dataremote.model.request.RequestPlaceDto
import org.sopt.dateroad.data.dataremote.util.Duration.DURATION
import org.sopt.dateroad.domain.model.Place

fun Place.toData(sequence: Int): RequestPlaceDto = RequestPlaceDto(
sequence = sequence,
title = this.title,
duration = duration.substringBefore(" ").toFloat()
duration = duration.substringBefore(DURATION).toFloat()
)
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package org.sopt.dateroad.presentation.ui.enroll

import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject
import kotlinx.coroutines.launch
import org.sopt.dateroad.data.dataremote.util.Date.NEAREST_DATE_START_OUTPUT_FORMAT
import org.sopt.dateroad.data.mapper.toEntity.toEnroll
Expand All @@ -15,6 +14,7 @@ import org.sopt.dateroad.presentation.type.EnrollScreenType
import org.sopt.dateroad.presentation.type.EnrollType
import org.sopt.dateroad.presentation.util.base.BaseViewModel
import org.sopt.dateroad.presentation.util.view.LoadState
import javax.inject.Inject

@HiltViewModel
class EnrollViewModel @Inject constructor(
Expand Down
Loading