mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
refactor(editor): Remove id
param from PATCH /me calls (no-changelog) (#10449)
This commit is contained in:
parent
91467ab325
commit
1466ff7525
|
@ -90,7 +90,6 @@ export async function changePassword(
|
|||
}
|
||||
|
||||
export type UpdateCurrentUserParams = {
|
||||
id?: string;
|
||||
firstName?: string;
|
||||
lastName?: string;
|
||||
email: string;
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -173,7 +173,6 @@ async function updateUserBasicInfo(userBasicInfo: UserBasicDetailsWithMfa) {
|
|||
}
|
||||
|
||||
await usersStore.updateUser({
|
||||
id: usersStore.currentUserId,
|
||||
firstName: userBasicInfo.firstName,
|
||||
lastName: userBasicInfo.lastName,
|
||||
email: userBasicInfo.email,
|
||||
|
|
Loading…
Reference in a new issue