JaysGitLab / cs5667-final-project-revdev

cs5667-final-project-revdev created by GitHub Classroom
MIT License
1 stars 0 forks source link

Reservation model #35

Closed patrickbeekman closed 6 years ago

patrickbeekman commented 6 years ago

Resolving issue #6

Created the reservation model and added tests to it. I added some date validation to check the startTime is before the endTime of the reservation and to take into account the maxAmountOfDays variable based on the eventType. I am not sure how this test case will react when the startTime and endTime are two different months eg. start=April 30th end=May 1st?

haietza commented 6 years ago

@patrickbeekman I fixed the error we were seeing this morning by adding the model to the config/mongoose.js file.

I made a few more changes in addition to the ones we did together this morning from the original pull request code review:

The tests are all now passing. Take a look and if these changes are okay with you, let me know and I'll approve the pull request and merge the branch into master. Thanks!

caldwellc1 commented 6 years ago

So we have different areas to make reservations for now? Wont that be an issue that can cause overlapping times with the current way we have everything set up?

haietza commented 6 years ago

@caldwellc1 We have one area to make a reservation - the create reservation view.