use uuid instead of id to delete notifications
This commit is contained in:
1 parent
1836e66429
commit
ef30e27ad7
2 files changed
+2
-2
No files matched your search
@@ -86,7 +86,7 @@ function Header() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
async function deleteNotification(notificationId: number) {
|
async function deleteNotification(notificationId: string) {
|
||||||
try {
|
try {
|
||||||
const result = await deleteNotificationUser(notificationId);
|
const result = await deleteNotificationUser(notificationId);
|
||||||
if (result) {
|
if (result) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import getXSRFToken from "../getXSRF";
|
import getXSRFToken from "../getXSRF";
|
||||||
|
|
||||||
export default async function deleteNotificationUser(notificationId:number) {
|
export default async function deleteNotificationUser(notificationId:string) {
|
||||||
const csrfToken = await getXSRFToken();
|
const csrfToken = await getXSRFToken();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user