BritishYouthBandAssociation / OrgAdmin

Admin site for organisations
1 stars 0 forks source link

Refactor #211

Closed rugulous closed 1 year ago

rugulous commented 1 year ago

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