mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-06 02:48:04 +00:00
refac
This commit is contained in:
parent
84659035f0
commit
78b1637a03
2 changed files with 4 additions and 4 deletions
|
|
@ -49,13 +49,13 @@ export type CalendarEventModel = {
|
|||
export type CalendarEventForm = {
|
||||
calendar_id: string;
|
||||
title: string;
|
||||
description?: string;
|
||||
description?: string | null;
|
||||
start_at: number;
|
||||
end_at?: number;
|
||||
all_day?: boolean;
|
||||
rrule?: string;
|
||||
color?: string;
|
||||
location?: string;
|
||||
location?: string | null;
|
||||
data?: Record<string, any>;
|
||||
meta?: Record<string, any>;
|
||||
attendees?: { user_id: string; status?: string }[];
|
||||
|
|
|
|||
|
|
@ -103,11 +103,11 @@
|
|||
const result = await updateCalendarEvent(localStorage.token, event.id, {
|
||||
calendar_id: calendarId,
|
||||
title: title.trim(),
|
||||
description: description.trim() || '',
|
||||
description: description.trim() || null,
|
||||
start_at: startNs,
|
||||
end_at: endNs,
|
||||
all_day: allDay,
|
||||
location: location.trim() || '',
|
||||
location: location.trim() || null,
|
||||
meta: { alert_minutes: alertMinutes }
|
||||
});
|
||||
if (result) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue