Skip to content

Commit

Permalink
[Hotfix] ver6.5 이후 비정상적인 저장로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
minsangKang committed Jul 15, 2022
1 parent 101f38f commit 9822b1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project_Timer/Stopwatch/ViewModel/StopwatchVM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ final class StopwatchVM {
self.timerCount = 0
let endAt = Date()
RecordController.shared.daily.update(at: endAt)
self.updateDaily()
RecordController.shared.recordTimes.recordStop(finishAt: endAt, taskTime: self.daily.tasks[self.task] ?? 0)
RecordController.shared.dailys.addDaily(self.daily)
self.updateTimes()
self.updateDaily()
}

func enterBackground() {
Expand Down
2 changes: 1 addition & 1 deletion Project_Timer/Timer/ViewModel/TimerVM.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,10 @@ final class TimerVM {
self.soundAlert = true
let endAt = Date()
RecordController.shared.daily.update(at: endAt)
self.updateDaily()
RecordController.shared.recordTimes.recordStop(finishAt: endAt, taskTime: self.daily.tasks[self.task] ?? 0)
RecordController.shared.dailys.addDaily(self.daily)
self.updateTimes()
self.updateDaily()
}

func enterBackground() {
Expand Down

0 comments on commit 9822b1a

Please sign in to comment.