Fix linting errors and Synology rootUrl issue

This commit is contained in:
mARTin 2026-03-13 13:40:39 +01:00
parent 4b0b23c024
commit ef22fb5046
2 changed files with 2 additions and 1 deletions

View File

@ -703,7 +703,7 @@ export const createCalendarEvent = async (
// Handle all-day event normalization for Apple (requires 'date' property, not 'dateTime')
// AND exclusive end date (add 1 day if needed)
const start = { ...event.start! };
let end = { ...event.end! };
const end = { ...event.end! };
if (event.allDay) {
if (start.dateTime && !start.date) {

View File

@ -72,6 +72,7 @@ const loginClient = async (client: DAVClient, serverUrl: string, username: strin
serverUrl: client.serverUrl,
accountType: 'caldav',
homeUrl,
rootUrl: homeUrl, // tsdav requires rootUrl for fetchCalendars
};
} else {
throw err;