refactor(editor): Remove id param from PATCH /me calls (no-changelog) (#10449)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user