MCPcopy Create free account
hub / github.com/Fibi66/FeiControl / markAllAsRead

Function markAllAsRead

src/components/NotificationDropdown.tsx:108–119  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

106 };
107
108 const markAllAsRead = async () => {
109 try {
110 await fetch("/api/notifications", {
111 method: "PATCH",
112 headers: { "Content-Type": "application/json" },
113 body: JSON.stringify({ action: "markAllRead" }),
114 });
115 await fetchNotifications();
116 } catch (error) {
117 console.error("Failed to mark all as read:", error);
118 }
119 };
120
121 const deleteNotification = async (id: string) => {
122 try {

Callers

nothing calls this directly

Calls 1

fetchNotificationsFunction · 0.85

Tested by

no test coverage detected