fix task date after sync

This commit is contained in:
Erik Winter 2024-12-27 09:15:05 +01:00
parent 4ce3538202
commit 2a62e6c335
2 changed files with 5 additions and 2 deletions

BIN
dist/plan vendored

Binary file not shown.

View File

@ -81,8 +81,11 @@ func (sync *Sync) do() error {
return fmt.Errorf("could not unmarshal task body: %v", err) return fmt.Errorf("could not unmarshal task body: %v", err)
} }
tsk := item.Task{ tsk := item.Task{
ID: u.ID, ID: u.ID,
TaskBody: tskBody, Date: u.Date,
Recurrer: u.Recurrer,
RecurNext: u.RecurNext,
TaskBody: tskBody,
} }
if err := sync.taskRepo.Store(tsk); err != nil { if err := sync.taskRepo.Store(tsk); err != nil {
return fmt.Errorf("could not store task: %v", err) return fmt.Errorf("could not store task: %v", err)