(
userId: string,
calendarId: string,
eventId: string,
vCalendar: string,
)
| 290 | } |
| 291 | |
| 292 | static async create( |
| 293 | userId: string, |
| 294 | calendarId: string, |
| 295 | eventId: string, |
| 296 | vCalendar: string, |
| 297 | ): Promise<void> { |
| 298 | const client = await getClient(userId); |
| 299 | |
| 300 | const calendarUrl = `${calendarConfig.calDavUrl}/${userId}/${calendarId}/`; |
| 301 | |
| 302 | await client.createCalendarObject({ |
| 303 | calendar: { |
| 304 | url: calendarUrl, |
| 305 | }, |
| 306 | iCalString: vCalendar, |
| 307 | filename: `${eventId}.ics`, |
| 308 | }); |
| 309 | } |
| 310 | |
| 311 | static async update( |
| 312 | userId: string, |
nothing calls this directly
no test coverage detected