implement is_locked for trip_details
This commit is contained in:
@ -13,6 +13,7 @@ pub struct TripDetails {
|
||||
pub allow_guests: bool,
|
||||
pub trip_type_id: Option<i64>,
|
||||
pub always_show: bool,
|
||||
pub is_locked: bool,
|
||||
}
|
||||
|
||||
#[derive(FromForm, Serialize)]
|
||||
@ -33,7 +34,7 @@ impl TripDetails {
|
||||
sqlx::query_as!(
|
||||
TripDetails,
|
||||
"
|
||||
SELECT id, planned_starting_time, max_people, day, notes, allow_guests, trip_type_id, always_show
|
||||
SELECT id, planned_starting_time, max_people, day, notes, allow_guests, trip_type_id, always_show, is_locked
|
||||
FROM trip_details
|
||||
WHERE id like ?
|
||||
",
|
||||
|
Reference in New Issue
Block a user