add data field to bookings
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 31s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 31s
This commit is contained in:
@@ -16,8 +16,9 @@ func (s SolidarityTransportServerImpl) BookDriverJourney(ctx context.Context, re
|
||||
driverId := req.DriverId
|
||||
journeyId := req.DriverJourneyId
|
||||
returnWaitingDuration := time.Duration(req.ReturnWaitingDuration)
|
||||
data := req.Data.AsMap()
|
||||
|
||||
booking, err := s.Handler.BookDriverJourney(passengerId, driverId, journeyId, returnWaitingDuration)
|
||||
booking, err := s.Handler.BookDriverJourney(passengerId, driverId, journeyId, returnWaitingDuration, data)
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msg("issue in BookDriverJourney handler")
|
||||
return nil, status.Errorf(codes.Internal, "could not create booking : %v", err)
|
||||
|
||||
Reference in New Issue
Block a user