SE701-T5 / Backend

Heroku deployed Node.js backend server developed by Team-5 for the UniForum project associated with the University of Auckland SOFTENG 701 course
https://uni-forum.herokuapp.com/
MIT License
2 stars 18 forks source link

Fix existing endpoints #102

Closed justcrossheaven closed 2 years ago

justcrossheaven commented 2 years ago

Description

Fix existing endpoints

Fixes/resolves #100, resolves #98

Screenshots

Please include any screenshots or media that illustrates the changes made

Type of change

Please delete options that are not relevant.

Checklist:

Leave blank if not applicable

I have completed these steps when making this pull request:

Before opening the PR for review:

j-chad commented 2 years ago

middleware.lib.ts Line 24 in isAuthenticated() - is it possible to refactor the nested try catch

This currently has to be there due to a limitation in how express cannot catch errors in asynchronous code