allow event trip_type update
This commit is contained in:
@ -49,6 +49,7 @@ struct UpdateEventForm<'r> {
|
||||
notes: Option<&'r str>,
|
||||
always_show: bool,
|
||||
is_locked: bool,
|
||||
trip_type: Option<i64>,
|
||||
}
|
||||
|
||||
#[put("/planned-event", data = "<data>")]
|
||||
@ -64,6 +65,7 @@ async fn update(
|
||||
notes: data.notes,
|
||||
always_show: data.always_show,
|
||||
is_locked: data.is_locked,
|
||||
trip_type_id: data.trip_type,
|
||||
};
|
||||
match Event::find_by_id(db, data.id).await {
|
||||
Some(planned_event) => {
|
||||
|
Reference in New Issue
Block a user