read content notification on click

This commit is contained in:
isUnknown 2025-01-15 15:36:43 +01:00
parent 1fae3dd414
commit 495e1c024e
7 changed files with 25 additions and 16 deletions

View file

@ -149,12 +149,12 @@ export const useApiStore = defineStore("api", () => {
* @param {string} projectId UUID or URI
* @returns status with message if error
*/
async function readNotification(comment, projectId) {
async function readNotification(notificationId, projectId) {
const headers = {
method: "POST",
body: JSON.stringify({
projectId,
notificationId: comment.id,
notificationId,
}),
};
try {