Add server method to get home residents given day
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 13
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
As a building block for historic reports, we need to know which residents lived in a given home on a given day (in ISO date string).
# Task
- [ ] Create server side method to get residents living at a given home on a given day
# Note
The method should take a date string or object as the second argument, after `homeId`. It will use the date string/object to find residents that both (logical **AND**):
- moved in to the home <= the end of the day
- moved out of the home >= the beginning of the day
## Resources
Moment.js has methods for getting the `endOf('day')` and `startOf('day')`.
Contributor guide
Assessment
This issue has not been assessed yet.