Add motivation field to organized carpool bookings
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m58s

This commit is contained in:
Arnaud Delcasse
2025-10-08 18:51:22 +02:00
parent b431d460bf
commit 38cb3c5ad9
8 changed files with 23 additions and 6 deletions

View File

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