From c89a199a331b73b1f22d0cb97061b6466fd57654 Mon Sep 17 00:00:00 2001 From: philipp Date: Wed, 3 May 2023 22:54:10 +0200 Subject: [PATCH] use proper field --- src/model/planned_event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/model/planned_event.rs b/src/model/planned_event.rs index 6c3f643..171b2f5 100644 --- a/src/model/planned_event.rs +++ b/src/model/planned_event.rs @@ -178,7 +178,7 @@ FROM user_trip WHERE trip_details_id = (SELECT trip_details_id FROM planned_even sqlx::query!( "UPDATE trip_details SET max_people = ?, notes = ? WHERE id = ?", - planned_amount_cox, + max_people, notes, self.trip_details_id )