fix: update history count

This commit is contained in:
Arnaud Delcasse
2026-02-25 10:05:07 +01:00
parent b5e722ff9b
commit 1b1c4443fc
7 changed files with 71 additions and 13 deletions

View File

@@ -1391,7 +1391,11 @@ func (h *ApplicationHandler) calculateSolidarityTransportPricing(ctx context.Con
}
if err == nil {
history = history + len(solidarity.Bookings)
for _, booking := range solidarity.Bookings {
if booking.Status == "VALIDATED" || booking.Status == "WAITING_CONFIRMATION" {
history++
}
}
}
var passengerGeo pricing.GeographyParams