Skip to content
This repository was archived by the owner on May 29, 2025. It is now read-only.

Support for multiple mealtime schedule#8

Open
shelemiah wants to merge 1 commit intoryanmitchell:masterfrom
shelemiah:master
Open

Support for multiple mealtime schedule#8
shelemiah wants to merge 1 commit intoryanmitchell:masterfrom
shelemiah:master

Conversation

@shelemiah
Copy link
Copy Markdown
Contributor

Change the logic to initially assume all mealtime schedules assigned to an item is unavailable. Then test if any of them are actually available using isAvailableSchedule().

This approach will allow items with multiple mealtime schedules assigned to available even if one schedule is unavailable.

Change the logic to initially assume all mealtime schedules assigned to an item is unavailable. Then test if any of them are actually available using isAvailableSchedule().

This approach will allow items with multiple mealtime schedules assigned to available even if one schedule is unavailable.
@ryanmitchell
Copy link
Copy Markdown
Owner

I think to preserve backwards compatability it should check if there are any mealtimes - if so set to unavailable and then check. Otherwise it should set to available.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants