refactor(editor): Remove id param from PATCH /me calls (no-changelog) (#10449)

This commit is contained in:
Tomi Turtiainen 2024-08-16 12:15:48 +03:00 committed by GitHub
parent 91467ab325
commit 1466ff7525
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 0 additions and 3 deletions

View file

@ -90,7 +90,6 @@ export async function changePassword(
}
export type UpdateCurrentUserParams = {
id?: string;
firstName?: string;
lastName?: string;
email: string;

View file

@ -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,
});

View file

@ -173,7 +173,6 @@ async function updateUserBasicInfo(userBasicInfo: UserBasicDetailsWithMfa) {
}
await usersStore.updateUser({
id: usersStore.currentUserId,
firstName: userBasicInfo.firstName,
lastName: userBasicInfo.lastName,
email: userBasicInfo.email,