forked from verdnatura/salix-front
change request to the backend
This commit is contained in:
parent
50376a3ec5
commit
52988f6299
|
@ -210,16 +210,10 @@ async function toggleNotif(notif, chip) {
|
||||||
message: t('worker.notificationsManager.subscribed'),
|
message: t('worker.notificationsManager.subscribed'),
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
const token = await getToken();
|
|
||||||
|
|
||||||
const tokenUser = await axios.get(`AccessTokens/${token}/user`);
|
|
||||||
console.log(tokenUser);
|
|
||||||
|
|
||||||
await axios.post(
|
await axios.post(
|
||||||
`NotificationSubscriptions/deleteNotification`,
|
`NotificationSubscriptions/deleteNotification`,
|
||||||
{
|
{
|
||||||
userFk: entityId.value,
|
notificationId: this.worker.subscribedNotifs.find((sub) => sub.notificationFk == notif.id).id,
|
||||||
notificationFk: notif.id,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
|
|
Loading…
Reference in New Issue