From 3c0eb5ae736a755bf8d6161b5e2987cc70380705 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Sat, 4 Jul 2026 09:43:34 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20pass=20task=5Ftype=3D[-1]=20to=20tasks?= =?UTF-8?q?=5Flist=20=E2=80=94=20required=20param,=20-1=20means=20all=20ty?= =?UTF-8?q?pes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NewBook returns 412 if task_type is absent. The original dailylist plugin always passes [-1] as a fallback when no specific types are configured. Co-Authored-By: Claude Sonnet 4.6 --- backend/src/lib/newbook.js | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/lib/newbook.js b/backend/src/lib/newbook.js index 0469d7e..7f7cb06 100644 --- a/backend/src/lib/newbook.js +++ b/backend/src/lib/newbook.js @@ -75,6 +75,7 @@ export async function fetchTasks(fromDate, toDate) { period_from: `${fromDate} 00:00:00`, period_to: `${toDate} 23:59:59`, show_uncomplete: 'true', + task_type: [-1], // -1 = all types; required by the API }) return res?.data ?? [] }