Made it work
continuous-integration/drone/pr Build is failing Details

This commit is contained in:
kolaente 2019-11-02 20:54:38 +01:00
parent 993d7f4faf
commit 8a6b176484
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 3 additions and 0 deletions

View File

@ -834,6 +834,7 @@ func (t *Task) Delete() (err error) {
func (t *Task) ReadOne() (err error) {
taskMap := make(map[int64]*Task, 1)
taskMap[t.ID] = &Task{}
*taskMap[t.ID], err = GetTaskByIDSimple(t.ID)
if err != nil {
return
@ -848,5 +849,7 @@ func (t *Task) ReadOne() (err error) {
return ErrTaskDoesNotExist{t.ID}
}
*t = *tasks[0]
return
}