Skip to content

Commit

Permalink
carpooling: send fake list, to deactivate
Browse files Browse the repository at this point in the history
  • Loading branch information
dulvui committed Feb 21, 2024
1 parent 16a8194 commit a442874
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.web.reactive.function.client.WebClientRequestException;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -77,7 +78,8 @@ public void carPoolingMain() {
try {
if (stationList.isEmpty()) {
// deactivate all active stations, if none are present
odhClient.syncStationStates(stationNamePrefix, odhClient.getProvenance().getLineage(), null, false);
odhClient.syncStationStates(stationNamePrefix, odhClient.getProvenance().getLineage(),
Arrays.asList("deactivate"), false);
} else {
odhClient.syncStations(stationList);
}
Expand Down

0 comments on commit a442874

Please sign in to comment.