Skip to content

Commit

Permalink
Fix allowOverloading in routing
Browse files Browse the repository at this point in the history
  • Loading branch information
optionsome committed Apr 3, 2023
1 parent ab37263 commit e197d30
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public Set<RentalFormFactor> getAvailableDropoffFormFactors(boolean includeRealt
return vehicleSpacesAvailable
.entrySet()
.stream()
.filter(e -> !includeRealtimeAvailability || e.getValue() > 0)
.filter(e -> !includeRealtimeAvailability || allowOverloading || e.getValue() > 0)
.map(e -> e.getKey().formFactor)
.collect(Collectors.toSet());
}
Expand Down

0 comments on commit e197d30

Please sign in to comment.