From 6c77a33c6f653fd3925127acaaa1f2770fea8667 Mon Sep 17 00:00:00 2001 From: alma Date: Sat, 17 Jan 2026 02:29:10 +0100 Subject: [PATCH] Fondation --- lib/services/caldav-sync.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/services/caldav-sync.ts b/lib/services/caldav-sync.ts index 7af7a70..48c2648 100644 --- a/lib/services/caldav-sync.ts +++ b/lib/services/caldav-sync.ts @@ -91,7 +91,9 @@ export async function discoverInfomaniakCalendars( // Check if this is actually a calendar (has in resourcetype) // Try multiple patterns to be more flexible with XML namespaces - const dataStr = props.data || ''; + // Handle both Response and ResponseDataDetailed types + const propsData = (props as any).data || ''; + const dataStr = typeof propsData === 'string' ? propsData : ''; const isCalendar = dataStr.includes('