improvements
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m6s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m6s
This commit is contained in:
@@ -17,10 +17,12 @@ func (s SolidarityTransportServerImpl) BookDriverJourney(ctx context.Context, re
|
||||
journeyId := req.DriverJourneyId
|
||||
priceAmount := req.PriceAmount
|
||||
priceCurrency := req.PriceCurrency
|
||||
driverCompensationAmount := req.DriverCompensationAmount
|
||||
driverCompensationCurrency := req.DriverCompensationCurrency
|
||||
returnWaitingDuration := time.Duration(req.ReturnWaitingDuration)
|
||||
data := req.Data.AsMap()
|
||||
|
||||
booking, err := s.Handler.BookDriverJourney(passengerId, driverId, journeyId, returnWaitingDuration, priceAmount, priceCurrency, data)
|
||||
booking, err := s.Handler.BookDriverJourney(passengerId, driverId, journeyId, returnWaitingDuration, priceAmount, priceCurrency, driverCompensationAmount, driverCompensationCurrency, 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