set looped task to latest idx
This commit is contained in:
@@ -144,9 +144,13 @@ func (a *Ajax) loopTasks() (time.Time, error) {
|
||||
if nextTask == (time.Time{}) {
|
||||
task.Title += " !!!INVALID CRON/LOOP!!!"
|
||||
}
|
||||
task.Index = list.NextIndex()
|
||||
if err := a.storageSetTask(list.UUID, task); err != nil {
|
||||
return nextDue, err
|
||||
}
|
||||
if err := a.storageSetList(list); err != nil {
|
||||
return nextDue, err
|
||||
}
|
||||
} else {
|
||||
if nextTask.Before(nextDue) {
|
||||
nextDue = nextTask
|
||||
|
||||
Reference in New Issue
Block a user