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

@@ -241,6 +241,20 @@ func (m *MockStorage) UpdateBookingStatus(bookingid string, newStatus string, re
return nil
}
func (m *MockStorage) GetBookingsByGroupId(groupId string) ([]*types.Booking, error) {
m.mu.RLock()
defer m.mu.RUnlock()
var bookings []*types.Booking
for _, booking := range m.bookings {
if booking.GroupId == groupId {
bookings = append(bookings, booking)
}
}
return bookings, nil
}
// Helper methods for testing
// Reset clears all data - useful for test setup