-
Notifications
You must be signed in to change notification settings - Fork 134
Open
Labels
good first issueGood for newcomersGood for newcomers
Description
Location: backend/src/notifications/
Description
Members should be able to clear their entire unread notification count in one action — useful when they return after a period of absence and have many unread items. This endpoint marks every unread notification for the requesting user as read in a single bulk update.
Acceptance Criteria
-
PATCH /notifications/read-allmarks all of the requesting user's unread notifications as read- Performs a bulk update:
UPDATE notifications SET isRead = true WHERE userId = :userId AND isRead = false - Returns
{ success: true, message: "All notifications marked as read" }
- Performs a bulk update:
- Important: The
read-allroute must be defined before the:idroute in the controller to prevent NestJS from treatingread-allas a UUID parameter - Uses
@GetCurrentUser('id')to scope the update to the requesting user only -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers