allow updating pinning an planned_trip
This commit is contained in:
@ -211,10 +211,12 @@ FROM user_trip WHERE trip_details_id = (SELECT trip_details_id FROM planned_even
|
||||
planned_amount_cox: i32,
|
||||
max_people: i32,
|
||||
notes: Option<&str>,
|
||||
always_show: bool,
|
||||
) {
|
||||
sqlx::query!(
|
||||
"UPDATE planned_event SET planned_amount_cox = ? WHERE id = ?",
|
||||
"UPDATE planned_event SET planned_amount_cox = ?, always_show=? WHERE id = ?",
|
||||
planned_amount_cox,
|
||||
always_show,
|
||||
self.id
|
||||
)
|
||||
.execute(db)
|
||||
|
Reference in New Issue
Block a user