fix: various issues

This commit is contained in:
swve 2024-03-18 22:25:25 +01:00
parent 8c47e5ff4e
commit 838b2ee03a
5 changed files with 43 additions and 11 deletions

View file

@ -8,7 +8,7 @@ import { RequestBody, errorHandling } from '@services/utils/ts/requests'
export async function updatePassword(user_id: string, data: any) {
const result: any = await fetch(
`${getAPIUrl()}users/password/user_id/` + user_id,
`${getAPIUrl()}users/change_password/` + user_id,
RequestBody('PUT', data, null)
)
const res = await errorHandling(result)