From 47d4285f10e4c9e55b29fd43ad0c813b6d521e14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Tue, 31 Oct 2023 10:16:11 +0100 Subject: [PATCH] lpwindow: Fix CanAccept fail history query --- provider/lpwindow/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provider/lpwindow/task.go b/provider/lpwindow/task.go index 48d30d2c7..e283dbd18 100644 --- a/provider/lpwindow/task.go +++ b/provider/lpwindow/task.go @@ -287,7 +287,7 @@ func (t *WdPostTask) CanAccept(ids []harmonytask.TaskID, te *harmonytask.TaskEng var r int err := t.db.QueryRow(context.Background(), `SELECT COUNT(*) FROM harmony_task_history - WHERE task_id = $1 AND success = false`, d.Task_id).Scan(&r) + WHERE task_id = $1 AND result = false`, d.Task_id).Scan(&r) if err != nil { log.Errorf("WdPostTask.CanAccept() failed to queryRow: %v", err) }