Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Stable backend#20

Merged
PeterGoedeke merged 5 commits intomainfrom
stable-backend
Mar 6, 2022
Merged

Stable backend#20
PeterGoedeke merged 5 commits intomainfrom
stable-backend

Conversation

@PeterGoedeke
Copy link
Owner

Summary of Changes Made

Brief summary of changes made

  • create a Postman collection for the api
  • use Postman to find errors in api and correct them

Screenshots

Add any screenshots here if applicable

This commit also changes the userId field in the database so that
it is no longer a uuid (this was a mistake, Firebase ids are not
uuids)
When the user attempts to create a post, they indicate the
categories under which the post falls. These may or may not exist.
This change changes the createPost controller to create any
categories which do not exist.
The reactToPost controller attempted to access req.params.postId,
which does not exist. It now correctly uses req.params.id.

Additionally, whether the user has or has not liked a post is now
correctly calculated, instead of always returning false
Copy link
Collaborator

@a16n-dev a16n-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😎

const log = Logger.getLogger('verification')

// function used to determine user authentication
export default async (token: string) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could add this comment back, especially because its an unnamed function it would be nice to have something that indicates what it does without having to rely on the file name

@PeterGoedeke PeterGoedeke merged commit 945d290 into main Mar 6, 2022
@PeterGoedeke PeterGoedeke deleted the stable-backend branch March 6, 2022 09:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants