improvements
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 34s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 34s
This commit is contained in:
@@ -36,7 +36,8 @@ func (s SolidarityTransportServerImpl) GetSolidarityTransportBookings(ctx contex
|
||||
startdate := req.StartDate.AsTime()
|
||||
enddate := req.EndDate.AsTime()
|
||||
passengerid := req.Passengerid
|
||||
bookings, err := s.Handler.GetBookings(startdate, enddate, passengerid)
|
||||
driverid := req.Driverid
|
||||
bookings, err := s.Handler.GetBookings(startdate, enddate, passengerid, driverid)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("issue in GetBookings handler")
|
||||
return nil, status.Errorf(codes.NotFound, "could not get bookings : %v", err)
|
||||
@@ -48,6 +49,8 @@ func (s SolidarityTransportServerImpl) GetSolidarityTransportBookings(ctx contex
|
||||
protobookings = append(protobookings, protobooking)
|
||||
}
|
||||
|
||||
log.Debug().Any("bookings", protobookings).Msg("bookings")
|
||||
|
||||
return &gen.GetSolidarityTransportBookingsResponse{
|
||||
Bookings: protobookings,
|
||||
}, nil
|
||||
|
||||
Reference in New Issue
Block a user