[Profile] Update fixed

This commit is contained in:
Matej Glasnák committed 2023-03-13 21:54:14 +01:00
1 parent 0d5bfa3b9b
commit eb7b44fbfe
4 files changed
+54 -75

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ export default {
},
updateUserInfo({commit}: {commit: any}, data: any) {
return new Promise((resolve, reject) => {
axios.post_auth_data('v1/auth/info', data)
axios.put_auth(`v1/users/${data.id}`, {data: data})
.then((response: any) => {
const user = response.user