get all bookings
This commit is contained in:
@@ -95,6 +95,14 @@ func (s *SolidarityServiceHandler) GetBookingsByStatus(ctx context.Context, stat
|
||||
return bookings, nil
|
||||
}
|
||||
|
||||
func (s *SolidarityServiceHandler) GetAllBookingsSolidarity(ctx context.Context ) (bookings []internal.Booking, err error) {
|
||||
bookings, err = s.Storage.GetAllBookingsSolidarity()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return bookings, nil
|
||||
}
|
||||
|
||||
func (s *SolidarityServiceHandler) GetDriverJourneys(ctx context.Context, departure_route *geojson.Feature, departure_date int64) (drivers []internal.Driver, err error) {
|
||||
drivers, err = s.Storage.DriverJourneys(departure_route, departure_date)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user