Add driver exclusion by group id
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m56s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m56s
This commit is contained in:
@@ -22,7 +22,12 @@ func (s SolidarityTransportServerImpl) GetDriverJourneys(ctx context.Context, re
|
||||
return nil, status.Errorf(codes.Internal, "arrival unmarhsalling error : %v", err)
|
||||
}
|
||||
|
||||
driverJourneys, err := s.Handler.GetDriverJourneys(departure, arrival, departureDate, req.Noreturn)
|
||||
excludeGroupId := ""
|
||||
if req.ExcludeGroupId != nil {
|
||||
excludeGroupId = *req.ExcludeGroupId
|
||||
}
|
||||
|
||||
driverJourneys, err := s.Handler.GetDriverJourneys(departure, arrival, departureDate, req.Noreturn, excludeGroupId)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("issue in GetDriverJourneys handler")
|
||||
return nil, status.Errorf(codes.Internal, "could not get driver journeys : %v", err)
|
||||
|
||||
Reference in New Issue
Block a user