allow updating pinning an planned_trip

This commit is contained in:
2023-06-08 11:28:25 +02:00
parent 5d0bfddadf
commit 47920305c4
3 changed files with 12 additions and 2 deletions

View File

@ -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)