Fix linting errors and Synology rootUrl issue
This commit is contained in:
parent
4b0b23c024
commit
ef22fb5046
@ -703,7 +703,7 @@ export const createCalendarEvent = async (
|
|||||||
// Handle all-day event normalization for Apple (requires 'date' property, not 'dateTime')
|
// Handle all-day event normalization for Apple (requires 'date' property, not 'dateTime')
|
||||||
// AND exclusive end date (add 1 day if needed)
|
// AND exclusive end date (add 1 day if needed)
|
||||||
const start = { ...event.start! };
|
const start = { ...event.start! };
|
||||||
let end = { ...event.end! };
|
const end = { ...event.end! };
|
||||||
|
|
||||||
if (event.allDay) {
|
if (event.allDay) {
|
||||||
if (start.dateTime && !start.date) {
|
if (start.dateTime && !start.date) {
|
||||||
|
|||||||
@ -72,6 +72,7 @@ const loginClient = async (client: DAVClient, serverUrl: string, username: strin
|
|||||||
serverUrl: client.serverUrl,
|
serverUrl: client.serverUrl,
|
||||||
accountType: 'caldav',
|
accountType: 'caldav',
|
||||||
homeUrl,
|
homeUrl,
|
||||||
|
rootUrl: homeUrl, // tsdav requires rootUrl for fetchCalendars
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
throw err;
|
throw err;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user