// api method for get notification by id
// RULES:
// TBA
import { pb } from '@/lib/pb';
import { COL_NOTIFICATIONS } from '@/constants';
import { RecordModel } from 'pocketbase';

export async function getNotificationById(id: string): Promise<RecordModel> {
  return pb.collection(COL_NOTIFICATIONS).getOne(id);
}
