allow event trip_type update
Some checks failed
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Has been cancelled

This commit is contained in:
2024-06-04 08:12:20 +02:00
parent 99409f9407
commit 30a6bc7109
3 changed files with 6 additions and 1 deletions

View File

@ -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) => {