fix: pass task_type=[-1] to tasks_list — required param, -1 means all types

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 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-04 09:43:34 +00:00
parent a7cc79a9b1
commit 3c0eb5ae73

View file

@ -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 ?? []
}