From ad9b14d71694aeb2c7a017fbc9bcf829178c5900 Mon Sep 17 00:00:00 2001 From: Nati Date: Mon, 17 Aug 2026 07:45:22 +0000 Subject: [PATCH] fix(profile): change update method from PATCH to PUT for profile updates --- apps/portal/src/app/features/profile/pages/ProfilePage.tsx | 2 +- libs/auth/src/lib/hooks/useCurrentProfile.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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<