Skip to content

Commit

Permalink
changed patch to put
Browse files Browse the repository at this point in the history
  • Loading branch information
jacovkim committed Nov 7, 2023
1 parent 1b0cac3 commit d27c010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csm_web/frontend/src/utils/queries/profiles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const useUserInfoUpdateMutation = (userId: number): UseMutationResult<voi
if (isNaN(userId)) {
throw new PermissionError("Invalid user id");
}
const response = await fetchWithMethod(`/user/${userId}/profile`, HTTP_METHODS.PATCH, body);
const response = await fetchWithMethod(`/user/${userId}/profile`, HTTP_METHODS.PUT, body);
if (response.ok) {
return;
} else {
Expand Down

0 comments on commit d27c010

Please sign in to comment.