fixed update
This commit is contained in:
parent
e7b6055693
commit
4f4fd46782
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue