Skip to content

Commit

Permalink
Merge pull request #113 from TimerTiTi/112-hotfix-add-daily
Browse files Browse the repository at this point in the history
close #112 hotfix add daily
  • Loading branch information
koreatlwls authored Apr 4, 2024
2 parents b292b9f + dbd3806 commit 225f721
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
4 changes: 2 additions & 2 deletions build-logic/src/main/kotlin/com/titi/common/BuildInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ object BuildType {

object AppConfig {
const val APP_ID = "com.titi.app"
const val APP_VERSION_NAME = "1.0.0"
const val APP_VERSION_CODE = 21
const val APP_VERSION_NAME = "1.0.1"
const val APP_VERSION_CODE = 22
const val APP_NAME = "TiTi"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ import com.titi.app.data.daily.api.DailyRepository
import com.titi.app.doamin.daily.mapper.toDomainModel
import com.titi.app.doamin.daily.mapper.toRepositoryModel
import com.titi.app.doamin.daily.model.TaskHistory
import java.time.LocalDate
import java.time.ZoneId
import java.time.ZoneOffset
import javax.inject.Inject
import kotlin.math.max
import org.threeten.bp.ZonedDateTime
Expand All @@ -18,7 +21,13 @@ class AddMeasureTimeAtDailyUseCase @Inject constructor(
endTime: String,
measureTime: Long,
) {
val recentDaily = dailyRepository.getDateDaily()?.toDomainModel()
val recentDaily = dailyRepository
.getDateDaily(
startDateTime = LocalDate.now()
.atStartOfDay(ZoneId.systemDefault())
.withZoneSameInstant(ZoneOffset.UTC)
.toString(),
)?.toDomainModel()

recentDaily?.let { daily ->
val taskHistory = TaskHistory(
Expand Down
4 changes: 2 additions & 2 deletions release-note.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
TiTi android dev 0.3.3(16)
- QA 0.3.2 버전 반영
TiTi android dev 1.0.1(22)
- 데일리 더하기 로직 수정

0 comments on commit 225f721

Please sign in to comment.