Skip to content

Commit

Permalink
Merge pull request #221 from TeamDATEROAD/hitfix-enroll
Browse files Browse the repository at this point in the history
[hotfix] 코스 불러오기를 통한 코스 등록이 안 되는 문제 해결
  • Loading branch information
jihyunniiii authored Aug 28, 2024
2 parents 82659b6 + 6b7bd97 commit 73adcc4
Showing 1 changed file with 2 additions and 1 deletion.
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()
)

0 comments on commit 73adcc4

Please sign in to comment.