update customer driver,

This commit is contained in:
louiscklaw
2025-04-22 22:55:21 +08:00
parent 7dc7716f18
commit 69cb0718be
13 changed files with 116 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import { COL_CUSTOMERS } from '@/constants';
import { pb } from '@/lib/pb';
export default async function GetActiveCount(): Promise<number> {
const { totalItems: count } = await pb.collection(COL_CUSTOMERS).getList(1, 1, {
filter: 'status = "active"',
});
return count;
}