fix task date after sync
This commit is contained in:
parent
4ce3538202
commit
2a62e6c335
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue