Fetch only CalDAV calendars via TSDav (#1727)
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
This commit is contained in:
parent
2ec0673e3d
commit
ce3947ac4c
1 changed files with 15 additions and 13 deletions
|
@ -191,19 +191,21 @@ export default abstract class BaseCalendarService implements Calendar {
|
||||||
): Promise<EventBusyDate[]> {
|
): Promise<EventBusyDate[]> {
|
||||||
const objects = (
|
const objects = (
|
||||||
await Promise.all(
|
await Promise.all(
|
||||||
selectedCalendars.map((sc) =>
|
selectedCalendars
|
||||||
fetchCalendarObjects({
|
.filter((sc) => sc.integration === "caldav_calendar")
|
||||||
calendar: {
|
.map((sc) =>
|
||||||
url: sc.externalId,
|
fetchCalendarObjects({
|
||||||
},
|
calendar: {
|
||||||
headers: this.headers,
|
url: sc.externalId,
|
||||||
expand: true,
|
},
|
||||||
timeRange: {
|
headers: this.headers,
|
||||||
start: new Date(dateFrom).toISOString(),
|
expand: true,
|
||||||
end: new Date(dateTo).toISOString(),
|
timeRange: {
|
||||||
},
|
start: new Date(dateFrom).toISOString(),
|
||||||
})
|
end: new Date(dateTo).toISOString(),
|
||||||
)
|
},
|
||||||
|
})
|
||||||
|
)
|
||||||
)
|
)
|
||||||
).flat();
|
).flat();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue