use uuid instead of id to delete notifications

This commit is contained in:
Giovanni committed 2026-03-28 17:02:08 +01:00
1 parent 1836e66429
commit ef30e27ad7
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 {