diff --git a/apps/portal/src/app/features/profile/pages/ProfilePage.tsx b/apps/portal/src/app/features/profile/pages/ProfilePage.tsx index 1fd9cdd97..3dd6ae467 100644 --- a/apps/portal/src/app/features/profile/pages/ProfilePage.tsx +++ b/apps/portal/src/app/features/profile/pages/ProfilePage.tsx @@ -292,7 +292,7 @@ export function ProfilePage() { saves.push( updateProfile({ url: `/profiles/${profileId}`, - method: 'PATCH', + method: 'PUT', body: profileName, }).unwrap(), ); diff --git a/libs/auth/src/lib/hooks/useCurrentProfile.ts b/libs/auth/src/lib/hooks/useCurrentProfile.ts index 534454a68..803f28e8d 100644 --- a/libs/auth/src/lib/hooks/useCurrentProfile.ts +++ b/libs/auth/src/lib/hooks/useCurrentProfile.ts @@ -109,7 +109,7 @@ const profileApi = baseApi unknown, { id: string; body: Record } >({ - query: ({ id, body }) => ({ url: `/profiles/${id}`, method: 'PATCH', body }), + query: ({ id, body }) => ({ url: `/profiles/${id}`, method: 'PUT', body }), invalidatesTags: ['CurrentProfile'], }), updateMyAddress: builder.mutation<