fix broken delete sql
This commit is contained in:
parent
0c34cca4be
commit
70291554e1
2
store.go
2
store.go
|
@ -123,7 +123,7 @@ func (s Store) DeleteTask(taskID int) error {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_, err = tx.Exec("DELETE FROM record WHERE task_id = $1", &taskID)
|
_, err = tx.Exec("DELETE FROM pomodoro WHERE task_id = $1", &taskID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
tx.Rollback()
|
tx.Rollback()
|
||||||
return err
|
return err
|
||||||
|
|
Loading…
Reference in New Issue