// PURPOSE: // Update notification record // // RULES: // 1. Uses COL_NOTIFICATIONS collection // 2. Requires valid notification ID string // 3. Accepts Partial update data // 4. Returns Promise with updated record // 5. Errors handled by caller import { pb } from '@/lib/pb'; import { COL_NOTIFICATIONS } from '@/constants'; import type { RecordModel } from 'pocketbase'; import type { NotificationFormProps } from '@/components/dashboard/notification/type.d'; export async function updateNotification(id: string, data: Partial): Promise { return pb.collection(COL_NOTIFICATIONS).update(id, data); }