Merge branch 'main' of interstellardevelopment.org:YasinOnm08/interstellar_ai
This commit is contained in:
commit
014658cfcb
3 changed files with 39 additions and 18 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue