Closed haietza closed 6 years ago
Fixing error passing ... will push when resolved.
@rivendell10 Instead of passing the err to the next middleware, it looks like it works better to just handle the error when it occurs with the res.redirect and flash message. This should be working now.
Resolves #42.
I got date validation for the max number of days for the event ref'd in the reservation working. It has to be in the controller as middleware in order to get the value from the Event table to be used in the validation function for the reservation.