Closed Dhooly closed 5 months ago
@rparker2003 I'm not sure if you guys want to refactor this now, but I see that the try_connect_to_db is called for every function. Can we not have this outside of the at the very top of the file and just return an error if we are not able to connect to the database.
It seems another issue that on a put request the data isn't actually even when the data is verified as a reference. Possible relates to the issue listed above.
I have looked through your revisions and I like the changes. Everything functions as required!
This is related to issue #35
Description / Changes Made
Routes fixed:
Delete all posts that are tied to a user once they delete their account
Add proper HTTP response for get_user_posts where none was returned
Remove unnecessary / old field in schema that will not be used (userID)
Screenshots
How to Test
Checklist