1
0

fix(task): correctly load tasks by id and uuid in caldav

Partially reverts 1afc72e190
This commit is contained in:
kolaente
2023-03-01 22:18:59 +01:00
parent e8c85562b1
commit 534d04a1db
2 changed files with 7 additions and 2 deletions

View File

@ -1612,7 +1612,7 @@ func (t *Task) Delete(s *xorm.Session, a web.Auth) (err error) {
// @Router /tasks/{ID} [get]
func (t *Task) ReadOne(s *xorm.Session, a web.Auth) (err error) {
*t, err = GetTaskSimple(s, t)
*t, err = GetTaskByIDSimple(s, t.ID)
if err != nil {
return
}