8 lines
238 B
TypeScript
8 lines
238 B
TypeScript
import { pb } from '@/lib/pb';
|
|
import { COL_CUSTOMERS } from '@/constants';
|
|
|
|
export async function getAllCustomersCount(): Promise<number> {
|
|
const result = await pb.collection(COL_CUSTOMERS).getList(1, 1);
|
|
return result.totalItems;
|
|
}
|