This commit is contained in:
Timothy Jaeryang Baek committed 2026-05-28 17:29:01 -05:00
1 parent 84659035f0
commit 78b1637a03
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -49,13 +49,13 @@ export type CalendarEventModel = {
export type CalendarEventForm = { export type CalendarEventForm = {
calendar_id: string; calendar_id: string;
title: string; title: string;
description?: string; description?: string | null;
start_at: number; start_at: number;
end_at?: number; end_at?: number;
all_day?: boolean; all_day?: boolean;
rrule?: string; rrule?: string;
color?: string; color?: string;
location?: string; location?: string | null;
data?: Record<string, any>; data?: Record<string, any>;
meta?: Record<string, any>; meta?: Record<string, any>;
attendees?: { user_id: string; status?: string }[]; attendees?: { user_id: string; status?: string }[];
@@ -103,11 +103,11 @@
const result = await updateCalendarEvent(localStorage.token, event.id, { const result = await updateCalendarEvent(localStorage.token, event.id, {
calendar_id: calendarId, calendar_id: calendarId,
title: title.trim(), title: title.trim(),
description: description.trim() || '', description: description.trim() || null,
start_at: startNs, start_at: startNs,
end_at: endNs, end_at: endNs,
all_day: allDay, all_day: allDay,
location: location.trim() || '', location: location.trim() || null,
meta: { alert_minutes: alertMinutes } meta: { alert_minutes: alertMinutes }
}); });
if (result) { if (result) {