- aggiornato sistema per inviare le newsletter !
This commit is contained in:
@@ -929,6 +929,18 @@ export const useUserStore = defineStore('UserStore', {
|
||||
}).catch((error) => this.getServerCode)
|
||||
},
|
||||
|
||||
async unsubscribe_news_on_fielduser(paramquery: any) {
|
||||
return Api.SendReq('/news/unsubscribe_user', 'POST', paramquery)
|
||||
.then((res) => {
|
||||
if (res.data.code === serv_constants.RIS_UNSUBSCRIBED_OK) {
|
||||
console.log('DESOTTOSCRITTO ALLA NEWSLETTER !!')
|
||||
} else {
|
||||
console.log('Risultato di unsubscribe: ', res.data.code)
|
||||
}
|
||||
return { code: res.data.code, msg: res.data.msg }
|
||||
}).catch((error) => this.getServerCode)
|
||||
},
|
||||
|
||||
async importemail(paramquery: any) {
|
||||
return Api.SendReq('/news/import', 'POST', paramquery)
|
||||
.then((res) => res).catch((error) => ({ numtot: 0, numadded: 0, numalreadyexisted: 0 }))
|
||||
|
||||
Reference in New Issue
Block a user