add booking retrieval for user
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 32s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 32s
This commit is contained in:
@@ -32,7 +32,8 @@ func (s SolidarityTransportServerImpl) BookDriverJourney(ctx context.Context, re
|
||||
func (s SolidarityTransportServerImpl) GetSolidarityTransportBookings(ctx context.Context, req *gen.GetSolidarityTransportBookingsRequest) (*gen.GetSolidarityTransportBookingsResponse, error) {
|
||||
startdate := req.StartDate.AsTime()
|
||||
enddate := req.EndDate.AsTime()
|
||||
bookings, err := s.Handler.GetBookings(startdate, enddate)
|
||||
passengerid := req.Passengerid
|
||||
bookings, err := s.Handler.GetBookings(startdate, enddate, passengerid)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("issue in GetBookings handler")
|
||||
return nil, status.Errorf(codes.NotFound, "could not get bookings : %v", err)
|
||||
|
||||
Reference in New Issue
Block a user