From 4f4fd46782c68387636c39fc5ac5fd75853ac597 Mon Sep 17 00:00:00 2001 From: Suraj Date: Mon, 1 Feb 2016 20:48:30 +0530 Subject: [PATCH] fixed update --- db/tasks.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/tasks.go b/db/tasks.go index 9a45cb6..985109d 100644 --- a/db/tasks.go +++ b/db/tasks.go @@ -168,7 +168,7 @@ func AddTask(title, content string, taskPriority int) error { //UpdateTask is used to update the tasks in the database func UpdateTask(id int, title string, content string) error { - err := taskQuery("update task set title=?, content=? where id=?", title, content) + err := taskQuery("update task set title=?, content=? where id=?", title, content, id) return err }