use uuid instead of id to delete notifications

This commit is contained in:
2026-03-28 17:02:08 +01:00
parent 1836e66429
commit ef30e27ad7
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function Header() {
}
async function deleteNotification(notificationId: number) {
async function deleteNotification(notificationId: string) {
try {
const result = await deleteNotificationUser(notificationId);
if (result) {
@@ -1,6 +1,6 @@
import getXSRFToken from "../getXSRF";
export default async function deleteNotificationUser(notificationId:number) {
export default async function deleteNotificationUser(notificationId:string) {
const csrfToken = await getXSRFToken();
try {