update users,

This commit is contained in:
louiscklaw
2025-05-08 14:38:18 +08:00
parent 30f494fc35
commit ea3f99654d
24 changed files with 194 additions and 29 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;
}