update code

master
兔子 2 years ago
parent 565bcca4f0
commit af71724029

@ -70,7 +70,10 @@ func innerLoadDB(db *stardb.StarDB, callback func(task Task)) (*Remind, error) {
for _, task := range res { for _, task := range res {
itask := new(Task) itask := new(Task)
*itask = task *itask = task
tmr := startimer.NewTimer(time.Now()) tmr, err := startimer.NewTimer(time.Now())
if err != nil {
return nil, err
}
err = tmr.ImportRepeats(itask.TmrInfo) err = tmr.ImportRepeats(itask.TmrInfo)
if err != nil { if err != nil {
return nil, err return nil, err

Loading…
Cancel
Save