Compare commits
No commits in common. "f08d9728eb694ffb32506c8ecd322c064ed5e6bb" and "18660344310b9567379d246b862a0d9f82b9480c" have entirely different histories.
f08d9728eb
...
1866034431
@ -250,13 +250,7 @@ async fn create_kiosk(
|
|||||||
} else if let Some(shipmaster) = data.shipmaster {
|
} else if let Some(shipmaster) = data.shipmaster {
|
||||||
User::find_by_id(db, shipmaster as i32).await.unwrap()
|
User::find_by_id(db, shipmaster as i32).await.unwrap()
|
||||||
} else {
|
} else {
|
||||||
let Some(rower) = data.rowers.get(0) else {
|
User::find_by_id(db, data.rowers[0] as i32).await.unwrap()
|
||||||
return Flash::error(
|
|
||||||
Redirect::to("/log"),
|
|
||||||
"Ausfahrt ohne Benutzer kann nicht angelegt werden.",
|
|
||||||
);
|
|
||||||
};
|
|
||||||
User::find_by_id(db, *rower as i32).await.unwrap()
|
|
||||||
};
|
};
|
||||||
Log::create(
|
Log::create(
|
||||||
db,
|
db,
|
||||||
|
Loading…
Reference in New Issue
Block a user