Import Calendar Events

This commit is contained in:
Bruno Bernardino
2024-03-29 15:51:45 +00:00
parent a788456751
commit 0b4b741d79
7 changed files with 266 additions and 23 deletions

View File

@@ -189,7 +189,7 @@ export async function createCalendarEvent(
const status: CalendarEvent['status'] = 'scheduled';
const newCalendar = (await db.query<Calendar>(
const newCalendarEvent = (await db.query<CalendarEvent>(
sql`INSERT INTO "bewcloud_calendar_events" (
"user_id",
"calendar_id",
@@ -217,7 +217,7 @@ export async function createCalendarEvent(
await updateCalendarRevision(calendar);
return newCalendar;
return newCalendarEvent;
}
export async function updateCalendarEvent(calendarEvent: CalendarEvent, oldCalendarId?: string) {