GroupID management
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m9s

This commit is contained in:
Arnaud Delcasse
2025-10-16 17:21:45 +02:00
parent 723c12a657
commit e0882db1bc
8 changed files with 68 additions and 5 deletions

View File

@@ -161,3 +161,15 @@ func (s MemoryStorage) UpdateBookingStatus(bookingid string, newStatus string, r
return nil
}
func (s MemoryStorage) GetBookingsByGroupId(groupId string) ([]*types.Booking, error) {
var bookings []*types.Booking
for _, booking := range s.Bookings {
if booking.GroupId == groupId {
bookings = append(bookings, booking)
}
}
return bookings, nil
}