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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user