// PURPOSE: // Mark single notification as read // // RULES: // 1. Uses COL_NOTIFICATIONS collection // 2. Requires valid notification ID string // 3. Updates read status to true // 4. Returns Promise with updated record // 5. Errors handled by caller import { COL_NOTIFICATIONS } from '@/constants'; import type { RecordModel } from 'pocketbase'; import { pb } from '@/lib/pb'; export async function MarkOneAsRead(id: string): Promise { return pb.collection(COL_NOTIFICATIONS).update(id, { read: true }); }