use uuid instead of id to delete notifications
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user