fixed update

This commit is contained in:
Suraj 2016-02-01 20:48:30 +05:30
parent e7b6055693
commit 4f4fd46782
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ func AddTask(title, content string, taskPriority int) error {
//UpdateTask is used to update the tasks in the database //UpdateTask is used to update the tasks in the database
func UpdateTask(id int, title string, content string) error { 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 return err
} }