summaryrefslogtreecommitdiff
path: root/internal/handlers/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/handlers.go')
-rw-r--r--internal/handlers/handlers.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/handlers/handlers.go b/internal/handlers/handlers.go
index 0d8b2da..408006d 100644
--- a/internal/handlers/handlers.go
+++ b/internal/handlers/handlers.go
@@ -698,7 +698,7 @@ func (h *Handler) HandleGetTaskDetail(w http.ResponseWriter, r *http.Request) {
for _, b := range boards {
for _, c := range b.Cards {
if c.ID == id {
- title = c.Name
+ title, description = c.Name, c.Description
break
}
}
@@ -740,7 +740,7 @@ func (h *Handler) HandleTaskDetailPage(w http.ResponseWriter, r *http.Request) {
for _, b := range boards {
for _, c := range b.Cards {
if c.ID == id {
- title = c.Name
+ title, description = c.Name, c.Description
break
}
}
@@ -785,7 +785,7 @@ func (h *Handler) HandleUpdateTask(w http.ResponseWriter, r *http.Request) {
var err error
switch source {
case "doot":
- err = h.store.UpdateNativeTask(id, "", description)
+ err = h.store.UpdateNativeTaskDescription(id, description)
case "trello":
err = h.trelloClient.UpdateCard(r.Context(), id, map[string]interface{}{"desc": description})
default: