Allow for newly created request to be edited

This commit is contained in:
Chris Jean-Marie 2025-06-26 18:07:15 +00:00
parent 50bc1f4eb5
commit f8b749da0c
2 changed files with 2 additions and 0 deletions

View File

@ -121,6 +121,7 @@ async fn get_event(event_id: Uuid, db_pool: &PgPool) -> String {
let event: Result<PgRow, Error> = Ok(sqlx::query( let event: Result<PgRow, Error> = Ok(sqlx::query(
r#"select to_json(json_build_object( r#"select to_json(json_build_object(
'id', ce.id,
'title', ce.title, 'title', ce.title,
'start', ce.start_time, 'start', ce.start_time,
'end', ce.end_time, 'end', ce.end_time,

View File

@ -151,6 +151,7 @@
// Optionally, use the response to add the event to the calendar // Optionally, use the response to add the event to the calendar
$('#eventDetailsModal').modal('hide'); $('#eventDetailsModal').modal('hide');
calendar.addEvent({ calendar.addEvent({
id: data.id,
title: data.title, title: data.title,
start: data.start, start: data.start,
end: data.end, end: data.end,