add data field to bookings
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 31s

This commit is contained in:
2025-06-04 15:52:03 +02:00
parent d237401c81
commit 418c7152b6
10 changed files with 424 additions and 374 deletions

View File

@@ -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)