forked from Ruderverein-Donau-Linz/rowt
send triptype to frontend
This commit is contained in:
@ -18,6 +18,7 @@ struct AddPlannedEventForm {
|
||||
planned_starting_time: String,
|
||||
max_people: i32,
|
||||
notes: Option<String>,
|
||||
trip_type: Option<i64>,
|
||||
}
|
||||
|
||||
#[post("/planned-event", data = "<data>")]
|
||||
@ -33,6 +34,7 @@ async fn create(
|
||||
data.max_people,
|
||||
data.day.clone(),
|
||||
data.notes.clone(),
|
||||
data.trip_type,
|
||||
)
|
||||
.await;
|
||||
|
||||
|
Reference in New Issue
Block a user