function markAllRead
markAllRead(userId: string): void

Marks every notification of userId read, when they open the /notifications page, and tells all their sockets, so that the bell clears in their other tabs and devices too.

Parameters

userId: string

Return Type

void

Usage

import { markAllRead } from "api/services/notification-service.ts";