From 1466ff75258892f4c35d4a670a56381add7d1066 Mon Sep 17 00:00:00 2001 From: Tomi Turtiainen <10324676+tomi@users.noreply.github.com> Date: Fri, 16 Aug 2024 12:15:48 +0300 Subject: [PATCH] refactor(editor): Remove `id` param from PATCH /me calls (no-changelog) (#10449) --- packages/editor-ui/src/api/users.ts | 1 - packages/editor-ui/src/stores/sso.store.ts | 1 - packages/editor-ui/src/views/SettingsPersonalView.vue | 1 - 3 files changed, 3 deletions(-) diff --git a/packages/editor-ui/src/api/users.ts b/packages/editor-ui/src/api/users.ts index a27faea7b7..aedbd0b594 100644 --- a/packages/editor-ui/src/api/users.ts +++ b/packages/editor-ui/src/api/users.ts @@ -90,7 +90,6 @@ export async function changePassword( } export type UpdateCurrentUserParams = { - id?: string; firstName?: string; lastName?: string; email: string; diff --git a/packages/editor-ui/src/stores/sso.store.ts b/packages/editor-ui/src/stores/sso.store.ts index 63c71c3899..d9d522274c 100644 --- a/packages/editor-ui/src/stores/sso.store.ts +++ b/packages/editor-ui/src/stores/sso.store.ts @@ -70,7 +70,6 @@ export const useSSOStore = defineStore('sso', () => { const updateUser = async (params: { firstName: string; lastName: string }) => await updateCurrentUser(rootStore.restApiContext, { - id: usersStore.currentUser!.id, email: usersStore.currentUser!.email!, ...params, }); diff --git a/packages/editor-ui/src/views/SettingsPersonalView.vue b/packages/editor-ui/src/views/SettingsPersonalView.vue index 60b40fb686..0ddbe6e5a5 100644 --- a/packages/editor-ui/src/views/SettingsPersonalView.vue +++ b/packages/editor-ui/src/views/SettingsPersonalView.vue @@ -173,7 +173,6 @@ async function updateUserBasicInfo(userBasicInfo: UserBasicDetailsWithMfa) { } await usersStore.updateUser({ - id: usersStore.currentUserId, firstName: userBasicInfo.firstName, lastName: userBasicInfo.lastName, email: userBasicInfo.email,