fix broken delete sql

This commit is contained in:
Kevin Schoon 2018-01-21 18:39:56 +08:00
parent 0c34cca4be
commit 70291554e1
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ func (s Store) DeleteTask(taskID int) error {
tx.Rollback()
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 {
tx.Rollback()
return err