0
0
Fork 0

change request to the backend

This commit is contained in:
Pau 2023-01-09 08:53:18 +01:00
parent 50376a3ec5
commit 52988f6299
1 changed files with 1 additions and 7 deletions

View File

@ -210,16 +210,10 @@ async function toggleNotif(notif, chip) {
message: t('worker.notificationsManager.subscribed'),
});
} else {
const token = await getToken();
const tokenUser = await axios.get(`AccessTokens/${token}/user`);
console.log(tokenUser);
await axios.post(
`NotificationSubscriptions/deleteNotification`,
{
userFk: entityId.value,
notificationFk: notif.id,
notificationId: this.worker.subscribedNotifs.find((sub) => sub.notificationFk == notif.id).id,
},
{
headers: {