Add motivation field to organized carpool bookings
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m58s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m58s
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
|
||||
func (s *CarpoolServiceServerImpl) CreateBooking(ctx context.Context, req *proto.CreateCarpoolBookingRequest) (*proto.CreateCarpoolBookingResponse, error) {
|
||||
booking := req.Booking.ToOCSS()
|
||||
createdBooking, err := s.Handler.Book(booking)
|
||||
createdBooking, err := s.Handler.Book(booking, req.Booking.Motivation)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.Internal, "could not create booking - %s", err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user