forked from OrgGo/Tasks
fix minor bugs
This commit is contained in:
parent
58d60f1615
commit
eb42e38fae
|
@ -163,7 +163,7 @@ func UpdateTask(id int, title string, content string) error {
|
|||
}
|
||||
|
||||
func taskQuery(sql string, args ...interface{}) error {
|
||||
SQL := database.prepare("update task set title=?, content=? where id=?")
|
||||
SQL := database.prepare(sql)
|
||||
tx := database.begin()
|
||||
_, err = tx.Stmt(SQL).Exec(args...)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue