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

@ -179,7 +179,16 @@ func (la *TaskAssginee) Delete(s *xorm.Session, a web.Auth) (err error) {
}
err = updateListByTaskID(s, la.TaskID)
return
if err != nil {
return err
}
doer, _ := user.GetFromAuth(a)
return events.Dispatch(&TaskAssigneeDeletedEvent{
Task: &Task{ID: la.TaskID},
Assignee: &user.User{ID: la.UserID},
Doer: doer,
})
}
// Create adds a new assignee to a task