- Il circuito viene creato in automatico, quando scegli una provincia.
This commit is contained in:
@@ -837,6 +837,19 @@ export const useUserStore = defineStore('UserStore', {
|
||||
async execDbOp(paramquery: any) {
|
||||
return Api.SendReq('/users/dbop', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return false
|
||||
})
|
||||
},
|
||||
|
||||
async execDbOpUser(paramquery: any) {
|
||||
return Api.SendReq('/users/dbopuser', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
|
||||
tools.updateMyData(res.data.ris)
|
||||
|
||||
return res.data
|
||||
}).catch((error) => {
|
||||
return false
|
||||
@@ -850,7 +863,9 @@ export const useUserStore = defineStore('UserStore', {
|
||||
value: step,
|
||||
}
|
||||
this.my.profile.stepTutorial = step
|
||||
return await this.execDbOp({mydata})
|
||||
const ris = await this.execDbOpUser({mydata})
|
||||
|
||||
return ris
|
||||
},
|
||||
async savenoNameSurname(val: boolean) {
|
||||
const mydata = {
|
||||
@@ -860,7 +875,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
if (this.my.profile.noNameSurname !== val) {
|
||||
this.my.profile.noNameSurname = val
|
||||
return await this.execDbOp({mydata})
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
async savenoFoto(val: boolean) {
|
||||
@@ -871,7 +886,7 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}
|
||||
if (this.my.profile.noFoto !== val) {
|
||||
this.my.profile.noFoto = val
|
||||
return await this.execDbOp({mydata})
|
||||
return await this.execDbOpUser({mydata})
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user