Attempts to simplify some of our code by pulling common sections out into helper/Library functions - for example, instead of needing to duplicate the code for getting the current season, we can now just call req.db.Season.getCurrent()
Middleware is also split out into a common module within the project so that we don't have to duplicate this across routes
Finally, constants have also been introduced to the Library (both referenceable in code and in the Seeds), so our IDs should always match
Attempts to simplify some of our code by pulling common sections out into helper/Library functions - for example, instead of needing to duplicate the code for getting the current season, we can now just call
req.db.Season.getCurrent()
Middleware is also split out into a common module within the project so that we don't have to duplicate this across routes
Finally, constants have also been introduced to the
Library
(both referenceable in code and in theSeeds
), so our IDs should always match