mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -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 = {
|
export type UpdateCurrentUserParams = {
|
||||||
id?: string;
|
|
||||||
firstName?: string;
|
firstName?: string;
|
||||||
lastName?: string;
|
lastName?: string;
|
||||||
email: string;
|
email: string;
|
||||||
|
|
|
@ -70,7 +70,6 @@ export const useSSOStore = defineStore('sso', () => {
|
||||||
|
|
||||||
const updateUser = async (params: { firstName: string; lastName: string }) =>
|
const updateUser = async (params: { firstName: string; lastName: string }) =>
|
||||||
await updateCurrentUser(rootStore.restApiContext, {
|
await updateCurrentUser(rootStore.restApiContext, {
|
||||||
id: usersStore.currentUser!.id,
|
|
||||||
email: usersStore.currentUser!.email!,
|
email: usersStore.currentUser!.email!,
|
||||||
...params,
|
...params,
|
||||||
});
|
});
|
||||||
|
|
|
@ -173,7 +173,6 @@ async function updateUserBasicInfo(userBasicInfo: UserBasicDetailsWithMfa) {
|
||||||
}
|
}
|
||||||
|
|
||||||
await usersStore.updateUser({
|
await usersStore.updateUser({
|
||||||
id: usersStore.currentUserId,
|
|
||||||
firstName: userBasicInfo.firstName,
|
firstName: userBasicInfo.firstName,
|
||||||
lastName: userBasicInfo.lastName,
|
lastName: userBasicInfo.lastName,
|
||||||
email: userBasicInfo.email,
|
email: userBasicInfo.email,
|
||||||
|
|
Loading…
Reference in a new issue