(body TaskUpdateRequest)
| 444 | } |
| 445 | |
| 446 | func toUpdateRequest(body TaskUpdateRequest) taskfile.UpdateRequest { |
| 447 | return taskfile.UpdateRequest{ |
| 448 | Title: body.Title, |
| 449 | Status: body.Status, |
| 450 | Priority: body.Priority, |
| 451 | Effort: body.Effort, |
| 452 | Type: body.Type, |
| 453 | Owner: body.Owner, |
| 454 | Parent: body.Parent, |
| 455 | Tags: body.Tags, |
| 456 | Body: body.Body, |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | func handleFileUpdateError(w http.ResponseWriter, err error) { |
| 461 | if strings.Contains(err.Error(), "no valid frontmatter") { |