SHPE-UTDallas / Website-Redesign

Redesign of the SHPE website
3 stars 2 forks source link

Create an endpoint to update a user's information #42

Open gabriel-flynn opened 3 years ago

gabriel-flynn commented 3 years ago

When a user wants to update something on their profile we need an endpoint that will:

  1. Verify that they are the owner of the account that they're trying to update
  2. Updates only the fields necessary? (Have to look into whether writes/reads are more costly - assuming Firebase reads are much cheaper than writes. If writing one object counts as one write then we might as well just blindly update)
    • Compare the fields they want to update to what is in their account and only update the fields that are different
gabriel-flynn commented 3 years ago

Firebase docs: https://firebase.google.com/docs/firestore