These two statements are not compatible - the error is specifically stating that truck_load does NOT have a :pull_point key at the beginning of get_remaining_time.
Some things to investigate:
- where is the argument to
get_remaining_timecoming from? The code in your initial post suggested it was intended to be a%TruckLoad{}struct, but wasn’t. - as shown in these posts,
list_assignable_drivers_by_truck_loadwill return a list of structs (fromRepo.all) - butdecorate_time_since_availableexpects a single driver. Should that beRepo.one?


















