Set doer when updating a task

This commit is contained in:
kolaente 2021-01-31 21:16:48 +01:00
parent 5897515ab6
commit a93aab6024
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 5 additions and 0 deletions

View File

@ -1037,8 +1037,13 @@ func (t *Task) Update(s *xorm.Session, a web.Auth) (err error) {
}
t.Updated = nt.Updated
doer, err := user.GetFromAuth(a)
if err != nil {
return err
}
err = events.Publish(&TaskUpdatedEvent{
Task: t,
Doer: doer,
})
if err != nil {
return err