diff --git a/backend/src/calendar.rs b/backend/src/calendar.rs index 7ec74ab..e4f41cb 100644 --- a/backend/src/calendar.rs +++ b/backend/src/calendar.rs @@ -121,6 +121,7 @@ async fn get_event(event_id: Uuid, db_pool: &PgPool) -> String { let event: Result = Ok(sqlx::query( r#"select to_json(json_build_object( + 'id', ce.id, 'title', ce.title, 'start', ce.start_time, 'end', ce.end_time, diff --git a/backend/templates/calendar.html b/backend/templates/calendar.html index 1a63cc5..bd2b81e 100644 --- a/backend/templates/calendar.html +++ b/backend/templates/calendar.html @@ -151,6 +151,7 @@ // Optionally, use the response to add the event to the calendar $('#eventDetailsModal').modal('hide'); calendar.addEvent({ + id: data.id, title: data.title, start: data.start, end: data.end,