From 70291554e14169d1a0ce69a19f603386ca36941f Mon Sep 17 00:00:00 2001 From: Kevin Schoon Date: Sun, 21 Jan 2018 18:39:56 +0800 Subject: [PATCH] fix broken delete sql --- store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store.go b/store.go index f6b601b..c0400b9 100644 --- a/store.go +++ b/store.go @@ -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