1
0

fix(task): make sure the task's last updated timestamp is always updated when releated entities changed

This commit is contained in:
kolaente
2023-02-14 20:09:05 +01:00
parent 659803fadf
commit fceb5dae0f
7 changed files with 198 additions and 8 deletions

View File

@ -1441,6 +1441,11 @@ func (t *Task) updateReminders(s *xorm.Session, reminders []time.Time) (err erro
return
}
func updateTaskLastUpdated(s *xorm.Session, task *Task) error {
_, err := s.ID(task.ID).Cols("updated").Update(task)
return err
}
// Delete implements the delete method for listTask
// @Summary Delete a task
// @Description Deletes a task from a list. This does not mean "mark it done".