Compare commits

..

No commits in common. "d01895df903e51f293d56d9df3d10ca949f27680" and "18047d16bf8f3efd6964bd2d6abe3f32d22fa6f1" have entirely different histories.

View File

@ -250,13 +250,7 @@ async fn create_kiosk(
} else if let Some(shipmaster) = data.shipmaster {
User::find_by_id(db, shipmaster as i32).await.unwrap()
} else {
let Some(rower) = data.rowers.get(0) else {
return Flash::error(
Redirect::to("/log"),
"Ausfahrt ohne Benutzer kann nicht angelegt werden.",
);
};
User::find_by_id(db, *rower as i32).await.unwrap()
User::find_by_id(db, data.rowers[0] as i32).await.unwrap()
};
Log::create(
db,