mirror of
https://github.com/Tria-plc/emaui.git
synced 2026-08-26 13:02:50 +00:00
fix(profile): change update method from PATCH to PUT for profile updates
This commit is contained in:
@@ -292,7 +292,7 @@ export function ProfilePage() {
|
||||
saves.push(
|
||||
updateProfile({
|
||||
url: `/profiles/${profileId}`,
|
||||
method: 'PATCH',
|
||||
method: 'PUT',
|
||||
body: profileName,
|
||||
}).unwrap(),
|
||||
);
|
||||
|
||||
@@ -109,7 +109,7 @@ const profileApi = baseApi
|
||||
unknown,
|
||||
{ id: string; body: Record<string, unknown> }
|
||||
>({
|
||||
query: ({ id, body }) => ({ url: `/profiles/${id}`, method: 'PATCH', body }),
|
||||
query: ({ id, body }) => ({ url: `/profiles/${id}`, method: 'PUT', body }),
|
||||
invalidatesTags: ['CurrentProfile'],
|
||||
}),
|
||||
updateMyAddress: builder.mutation<
|
||||
|
||||
Reference in New Issue
Block a user