fix(be): quote 'end' column name for postgres

This commit is contained in:
Denis Gukov 2021-09-17 03:19:34 +05:00
parent f8b0195f88
commit 7f52d93441

View File

@ -13,7 +13,7 @@ func (d *SqlDb) CreateTask(task db.Task) (db.Task, error) {
func (d *SqlDb) UpdateTask(task db.Task) error {
_, err := d.exec(
"update task set status=?, start=?, end=? where id=?",
"update task set status=?, start=?, `end`=? where id=?",
task.Status,
task.Start,
task.End,