fix: add VTODO filter for Synology CalDAV sync and clean up debug logs

Synology tasks were not syncing because tsdav defaulted to VEVENT only.
Added explicit VTODO comp-filter to the CalDAV REPORT request.
Removed debug logging from sync routes.

v1.15.9

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
mARTin 2026-03-08 01:35:19 +01:00
parent f6b7a5d7a2
commit d9949f42d5
2 changed files with 11 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "my-weekly-todo-list",
"version": "1.15.8",
"version": "1.15.9",
"description": "A web-based weekly task management application that organizes to-dos and calendar events in a single, intuitive weekly view",
"main": "index.js",
"scripts": {

View File

@ -125,13 +125,22 @@ export const fetchSynologyTasks = async (serverUrl: string, username: string, pa
throw new Error(`List not found: ${listId}`);
}
// Use VTODO filter to ensure we get tasks, not just events
const objects = await client.fetchCalendarObjects({
calendar: targetCalendar,
filters: [{
'comp-filter': {
_attributes: { name: 'VCALENDAR' },
'comp-filter': {
_attributes: { name: 'VTODO' },
},
},
}],
});
const parsedTasks: any[] = [];
objects.forEach(obj => {
objects.forEach((obj) => {
const data = (obj as any).data;
if (!data) return;