Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stationapi/src/infrastructure/station_repository.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1343,7 +1343,7 @@ impl InternalStationRepository {
COALESCE(l.average_distance, 0.0)::DOUBLE PRECISION AS average_distance,
NULL::int AS sst_id,
NULL::int AS type_cd,
NULL::int AS line_group_cd,
(SELECT sst.line_group_cd FROM station_station_types sst WHERE sst.station_cd = s.station_cd AND sst.line_group_cd IS NOT NULL LIMIT 1)::int AS line_group_cd,
NULL::int AS pass,
NULL::int AS type_id,
NULL::text AS type_name,
Expand Down
8 changes: 4 additions & 4 deletions stationapi/src/use_case/interactor/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ where
return Ok(None);
}
let stations = self
.update_station_vec_with_attributes(vec![station], None, transport_type, false)
.update_station_vec_with_attributes(vec![station], None, transport_type, true)
.await?;

Ok(stations.into_iter().next())
Expand All @@ -89,7 +89,7 @@ where
.filter(|s| matches_transport_filter(s.transport_type, transport_type))
.collect();
let stations = self
.update_station_vec_with_attributes(stations, None, transport_type, false)
.update_station_vec_with_attributes(stations, None, transport_type, true)
.await?;

Ok(stations)
Expand Down Expand Up @@ -161,7 +161,7 @@ where
.await?;

let stations = self
.update_station_vec_with_attributes(stations, None, transport_type, false)
.update_station_vec_with_attributes(stations, None, transport_type, true)
.await?;

Ok(stations)
Expand Down Expand Up @@ -269,7 +269,7 @@ where
.await?;

let stations = self
.update_station_vec_with_attributes(stations, None, transport_type, false)
.update_station_vec_with_attributes(stations, None, transport_type, true)
.await?;

Ok(stations)
Expand Down
Loading