Skip to content

Commit

Permalink
carpooling: use correct station type
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Feb 21, 2024
1 parent be04242 commit ae4fcf6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class SyncScheduler {
private static final Logger LOG = LoggerFactory.getLogger(SyncScheduler.class);
private static final String DATATYPE_ITINERARY_ID = "itinerary_details";

@Value("${odh_client.stationtype}")
private String stationtype;

@Value("${odh_client.period}")
private Integer period;

Expand Down Expand Up @@ -79,7 +82,7 @@ public void carPoolingMain() {
if (stationList.isEmpty()) {
// deactivate all active stations, if none are present
LOG.info("Deactivating all active stations");
odhClient.syncStationStates(stationNamePrefix, odhClient.getProvenance().getLineage(),
odhClient.syncStationStates(stationtype, odhClient.getProvenance().getLineage(),
Arrays.asList("deactivate"), false);
} else {
odhClient.syncStations(stationList);
Expand Down

0 comments on commit ae4fcf6

Please sign in to comment.