- sistemato anche il users/profile ed aggiunto /users/activities

This commit is contained in:
Surya Paolo
2024-03-21 22:58:52 +01:00
parent 831ffcc8bf
commit 44ee68f8c6
3 changed files with 24 additions and 5 deletions

View File

@@ -1529,6 +1529,25 @@ export const useUserStore = defineStore('UserStore', {
},
async loadUserActivities({ username, idnotif }: { username: string, idnotif?: string }) {
const data = {
username,
idnotif
}
return await Api.SendReq('/users/activities', 'POST', data)
.then((ris) => {
if (this.my.username === ris.data.user.username) {
// this.updateDataFr(ris.data.friends)
}
return ris.data.user
}).catch((error) => {
return {}
})
},
async setUserNotifs(notifs: IUserNotifType[]) {
const data = {
notifs