fix update-avatar

This commit is contained in:
Aaron William Po
2023-12-07 21:12:17 -05:00
parent c7d5c65ffb
commit 01a9bfaf4e
3 changed files with 4 additions and 46 deletions

View File

@@ -10,7 +10,7 @@ const sendUpdateUserProfileRequest = async ({
bio,
userId,
}: UpdateProfileRequestParams) => {
const response = await fetch(`/api/users/${userId}/profile/update-bio`, {
const response = await fetch(`/api/users/${userId}/profile/update-profile`, {
method: 'PUT',
body: JSON.stringify({ bio }),
headers: { 'Content-Type': 'application/json' },