-
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
When a member opens or clicks a notification, it should be marked as read so the unread badge count decreases. This endpoint marks a single notification as read by its ID. The endpoint must verify that the notification belongs to the requesting user before updating it.
Acceptance Criteria
-
PATCH /notifications/:id/readmarks a single notification as read- Finds the notification by
id— throwsNotFoundExceptionif it does not exist - Throws
ForbiddenExceptionif the notification does not belong to the requesting user - Sets
isReadtotrueand saves the record - Returns
{ success: true, message: "Notification marked as read", data: Notification }
- Finds the notification by
- Uses
@GetCurrentUser('id')to identify the requesting user -
npx tsc --noEmitpasses with no errors
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomers