mirror of
https://github.com/thewhitetulip/Tasks.git
synced 2025-04-28 13:48:51 +08:00
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…
x
Reference in New Issue
Block a user