fix
This commit is contained in:
@@ -369,17 +369,21 @@ func (h *ApplicationHandler) BeneficiarySolidarityDisplay(w http.ResponseWriter,
|
||||
|
||||
solidarity_bookings_list, err := h.services.GRPC.SolidarityService.GetBookingsByStatus(context.TODO(), solidarity_booking)
|
||||
|
||||
var bookings []any
|
||||
|
||||
for _, o := range solidarity_bookings_list.Booking {
|
||||
bookings = append(bookings, o)
|
||||
}
|
||||
if err != nil {
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
w.WriteHeader(http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
var bookings []any
|
||||
|
||||
for _, o := range solidarity_bookings_list.Booking {
|
||||
if(o.PickupDate != nil){
|
||||
bookings = append(bookings, o)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
h.Renderer.BeneficiarySolidarityDisplay(w, r , accountssolidarity , bookings)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user