[#78] added valarm support

This commit is contained in:
Camille Moussu
2025-09-08 17:35:16 +02:00
parent 18413ab203
commit b87b77beef
6 changed files with 83 additions and 34 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ export async function getEvent(event: CalendarEvent) {
return { ...eventjson, ...event };
}
export async function putEvent(event: CalendarEvent) {
export async function putEvent(event: CalendarEvent, calOwnerEmail?: string) {
const response = await api(`dav${event.URL}`, {
method: "PUT",
body: JSON.stringify(calendarEventToJCal(event)),
body: JSON.stringify(calendarEventToJCal(event, calOwnerEmail)),
headers: {
"content-type": "text/calendar; charset=utf-8",
},