forked from Ruderverein-Donau-Linz/rowt
allow creating all fields for new boats
This commit is contained in:
@ -111,6 +111,8 @@ struct BoatAddForm<'r> {
|
||||
default_shipmaster_only_steering: bool,
|
||||
skull: bool,
|
||||
external: bool,
|
||||
location_id: Option<i64>,
|
||||
owner: Option<i64>,
|
||||
}
|
||||
|
||||
#[post("/boat/new", data = "<data>")]
|
||||
@ -128,6 +130,8 @@ async fn create(
|
||||
data.default_shipmaster_only_steering,
|
||||
data.skull,
|
||||
data.external,
|
||||
data.location_id,
|
||||
data.owner,
|
||||
)
|
||||
.await
|
||||
{
|
||||
|
Reference in New Issue
Block a user