Fondation

This commit is contained in:
alma 2026-01-17 02:25:41 +01:00
parent de9c1b767b
commit 3c8c38fd72

View File

@ -51,7 +51,10 @@ export async function discoverInfomaniakCalendars(
// List all calendars using PROPFIND on root
logger.debug('[CALDAV] Fetching directory contents from root');
const items = await client.getDirectoryContents('/');
const itemsResult = await client.getDirectoryContents('/');
// Handle both FileStat[] and ResponseDataDetailed<FileStat[]> return types
const items = Array.isArray(itemsResult) ? itemsResult : itemsResult.data;
logger.debug('[CALDAV] Found items in root directory', {
count: items.length,