summaryrefslogtreecommitdiff
path: root/internal/handlers/widget.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/handlers/widget.go')
-rw-r--r--internal/handlers/widget.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/handlers/widget.go b/internal/handlers/widget.go
index 1f6911b..7557da1 100644
--- a/internal/handlers/widget.go
+++ b/internal/handlers/widget.go
@@ -367,7 +367,7 @@ func (h *Handler) HandleWidgetUpdate(w http.ResponseWriter, r *http.Request) {
http.Error(w, "task not found", http.StatusNotFound)
return
}
- if err := h.googleTasksClient.UpdateTaskNotes(r.Context(), t.ListID, req.ID, req.Description); err != nil {
+ if err := h.googleTasksClient.UpdateTask(r.Context(), t.ListID, req.ID, t.Title, req.Description); err != nil {
http.Error(w, "failed to update task", http.StatusInternalServerError)
return
}