allow creating all fields for new boats

This commit is contained in:
2023-07-22 16:36:02 +02:00
parent 6f8ef42b87
commit b2f626f906
3 changed files with 19 additions and 6 deletions

View File

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