Skip to content

client/api: update user db email function#1498

Merged
trillium merged 4 commits intohackforla:developmentfrom
evanyang1:evan-1496-email-addr
Sep 8, 2023
Merged

client/api: update user db email function#1498
trillium merged 4 commits intohackforla:developmentfrom
evanyang1:evan-1496-email-addr

Conversation

@evanyang1
Copy link
Member

Creates a new function updateUserEmail within client/src/api/UserApiService.js that patches the user's email in the database.

fixes #1496

update user db email
@github-actions
Copy link

github-actions bot commented Sep 2, 2023

Want to review this pull request? Take a look at this documentation for a step by step guide!

From your project repository, check out a new branch and test the changes.

git checkout -b evanyang1-evan-1496-email-addr development
git pull https://github.com/evanyang1/VRMS.git evan-1496-email-addr

const requestOptions = {
method: 'PATCH',
headers: this.headers,
body: JSON.stringify({ email }),
Copy link
Member

Choose a reason for hiding this comment

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

can we throw in .toLowerCase() for good measure here Evan?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ofc!

Copy link
Member

@trillium trillium left a comment

Choose a reason for hiding this comment

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

Thanks, now lets get this attached to the user page so admins can update user emails!

@trillium trillium merged commit 258803d into hackforla:development Sep 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create a function within the client/src/api/UserApiService.js component that updates the user's email address

2 participants