history backend tweaks

This commit is contained in:
Patrick_Pluto 2024-10-02 14:14:20 +02:00
parent cfe369a032
commit 03aa86485a
3 changed files with 39 additions and 18 deletions

View file

@ -68,7 +68,7 @@ export const changePassword = async (usernameOrEmail: string, password: string,
export const getData = async (usernameOrEmail: string, password: string) => {
const data = {
action: "get_data",
action: "get_settings",
username: usernameOrEmail.includes('@') ? undefined : usernameOrEmail,
email: usernameOrEmail.includes('@') ? usernameOrEmail : undefined,
password,
@ -98,7 +98,7 @@ export const getName = async (usernameOrEmail: string, password: string): Promis
export const changeData = async (usernameOrEmail: string, password: string, newData: any) => {
const data = {
action: "change_data",
action: "change_settings",
username: usernameOrEmail.includes('@') ? undefined : usernameOrEmail,
email: usernameOrEmail.includes('@') ? usernameOrEmail : undefined,
password,