fix(notifications): missed api converstion in the front end for updating
This commit is contained in:
@@ -170,11 +170,11 @@ const NotificationTable = () => {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await api.patch(
|
const res = await api.patch(
|
||||||
`/lst/api/notification/${i.row.original.id}`,
|
`/notification/${i.row.original.id}`,
|
||||||
{
|
{
|
||||||
active: !activeToggle,
|
active: !activeToggle,
|
||||||
},
|
},
|
||||||
{ withCredentials: true },
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if (res.data.success) {
|
if (res.data.success) {
|
||||||
|
|||||||
Reference in New Issue
Block a user