// api method for update notification record // RULES: // TBA 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 MarkOneAsRead(id: string): Promise { return pb.collection(COL_NOTIFICATIONS).update(id, { read: true }); }