update notifications,
This commit is contained in:
7
002_source/cms/src/db/Notifications/GetAllCount.tsx
Normal file
7
002_source/cms/src/db/Notifications/GetAllCount.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
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;
|
||||
}
|
Reference in New Issue
Block a user