Fondation
This commit is contained in:
parent
de9c1b767b
commit
3c8c38fd72
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user