// PURPOSE: // Get count of pending customers // REQ0006 // // RULES: // error handled by caller // contain definition to collection only // import { COL_USER_METAS } from '@/constants'; import { pb } from '@/lib/pb'; export default async function GetPendingCount(): Promise { const { totalItems: count } = await pb.collection(COL_USER_METAS).getList(1, 1, { filter: 'role = "teacher" && status = "pending"', }); return count; }