GroupID management
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m9s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 3m9s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user