move always_show to tripdetails
This commit is contained in:
@ -33,10 +33,14 @@ impl Day {
|
||||
true => PlannedEvent::get_pinned_for_day(db, day).await,
|
||||
false => PlannedEvent::get_for_day(db, day).await,
|
||||
};
|
||||
let trips = match is_pinned {
|
||||
true => Trip::get_pinned_for_day(db, day).await,
|
||||
false => Trip::get_for_day(db, day).await,
|
||||
};
|
||||
Self {
|
||||
day,
|
||||
planned_events,
|
||||
trips: Trip::get_for_day(db, day).await,
|
||||
trips,
|
||||
is_pinned,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user