move always_show to tripdetails
This commit is contained in:
@ -42,7 +42,7 @@ pub enum LogbookUpdateError {
|
||||
|
||||
pub enum LogbookCreateError {
|
||||
BoatAlreadyOnWater,
|
||||
BoatLocked
|
||||
BoatLocked,
|
||||
}
|
||||
|
||||
impl Logbook {
|
||||
@ -124,7 +124,7 @@ impl Logbook {
|
||||
) -> Result<(), LogbookCreateError> {
|
||||
//Check if boat is not locked
|
||||
//Check if boat is already on water
|
||||
sqlx::query!(
|
||||
let _ = sqlx::query!(
|
||||
"INSERT INTO logbook(boat_id, shipmaster, shipmaster_only_steering, departure, arrival, destination, distance_in_km, comments, logtype) VALUES (?,?,?,?,?,?,?,?,?)",
|
||||
boat_id, shipmaster, shipmaster_only_steering, departure, arrival, destination, distance_in_km, comments, logtype
|
||||
)
|
||||
|
Reference in New Issue
Block a user