From 34280dbbeaf47784d08b2a87ae54eb5136d05bd1 Mon Sep 17 00:00:00 2001 From: philipp Date: Thu, 28 Dec 2023 18:19:43 +0100 Subject: [PATCH] fix error where joining cox to planned_event is not dispaying properly. The problem was the restructuring commit https://git.hofer.link/Ruderverein-Donau-Linz/rowt/commit/7569798b008edfbf4763e4134c9a79300b5d66c0#diff-0496fd5ec13efcfc97602dc5784170a0dd124e6e where I compared different ids --- 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 7446052..a4e61e8 100644 --- a/src/model/planned_event.rs +++ b/src/model/planned_event.rs @@ -144,7 +144,7 @@ WHERE day=?", let mut ret = Vec::new(); for event in events { - let cox = Registration::all_cox(db, event.trip_details_id).await; + let cox = Registration::all_cox(db, event.id).await; let mut trip_type = None; if let Some(trip_type_id) = event.trip_type_id { trip_type = TripType::find_by_id(db, trip_type_id).await;