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:
parent
a7cc79a9b1
commit
3c0eb5ae73
1 changed files with 1 additions and 0 deletions
|
|
@ -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 ?? []
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue